I have written a simple script via PowerShell
to gather some files and zip them into one folder, lets call it Script.ps1
. I want to make the script run every time Jenkins does a new build, however I also would like the name of the zip file to be the BUILD_NUMBER
.
How can I create a variable in PowerShell
that is Jenkins's current build number? As of the moment I am calling the Script.ps1
in the execute shell section of configuration.