Skip to content

Commit

Permalink
fix(dsl): env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeptossss committed Dec 13, 2023
1 parent 0fa2f66 commit a010a92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jenkins/job_dsl.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ freeStyleJob("link-project") {
preBuildCleanup()
}
steps {
environmentVariables {
env("DISPLAY_NAME", "$DISPLAY_NAME")
}
shell('echo "Building project $DISPLAY_NAME"')
shell('export DISPLAY_NAME=$DISPLAY_NAME')
shell('cp -r /whanos/scripts/* . && chmod -R 777 . && sh -c "./whanos.sh $DISPLAY_NAME"')
}
}
Expand Down

0 comments on commit a010a92

Please sign in to comment.