Jump to content
groovyPost Forums

RogerG

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by RogerG

  1. I have figured out that actually, I was not using that properly in the Pipeline. I am stuck with another problem, copying files from Workspace on Windows def deployartifact() { echo "Deploy artifacts ..." stage('Deploy') { node { def sourceFilePath = 'outputs\\release\\file.tar' def destinationFilePath = '\\\\server.net\\d\$\\Share' echo "Sourcefilepath is ${sourceFilePath} and Destinationpath is ${destinationFilePath}" bat 'copy %WORKSPACE%\\${sourceFilePath} ${destinationFilePath}' } } } File is not getting copied because of
  2. Hi list, I am trying to use this script to copy a file from one directory to another def publish() { echo "Publish artifacts ..." String sourceFilePath = "%WORKSPACE%\\app\\build\\outputs\\newrelease.tar" String destinationFilePath = "\\app.xxx.net\\d\$\\Share" // bat 'copy ${sourceFilePath} ${destinationFilePath}' (new AntBuilder()).copy(file: sourceFilePath, tofile: destinationFilePath) } I am getting the following error even after approving from "in process script approvals" : org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAcces
×
×
  • Create New...