I have to make a change to an existing Jenkins pipeline. I need to rename the file to incorporate the version. The version is already being used in other portions of the script.
This is what I have found but rename-item is not recognized as a command. Where can i find the commands I can use? How to I make this work?
stage('Rename') {
bat """
rename-item -Path "C:\\temp\\OriginalName.exe" -NewName "OriginalName-${version}.exe"
"""
}
TIA