NO JIRA - Fix build step printing environment variables on Windows
// under the License.
pipeline {
- agent {
- label '!Windows'
- }
+ agent any
tools {
maven 'Maven (latest)'
@@ -48,8 +46,15 @@ pipeline {
stage("Build info") {
steps {
echo '=== Environment variables ==='
+ script {
+ if (isUnix()) {
sh 'printenv'
}
+ else {
+ bat 'set'
+ }
+ }
+ }
}
// Perform a merge request build. This is a conditional stage executed with the GitLab
