| First test was also successful here. Still have two entries in the DropDown List: Unable to render embedded object: File (2018-02-27_084410.jpg) not found. Further: Would it be possible to get the _configNamevalue _from a variable? Currently i need to hardcode this value in my pipeline...
sshPublisher(publishers: [sshPublisherDesc(configName: 'swpsci06', transfers: [sshTransfer(execCommand: '', execTimeout: 120000, sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
I would like to do something like. The variable "ReleaseNumber" is getting populate from my paramterized build.
#!/usr/bin/env groovy
def call(Map params = [:]) {
def serverHostname = "swpsws26"
pipeline {
agent any
stages {
stage('Download') {
steps {
sshPublisher(publishers: [sshPublisherDesc(configName: $serverHostname, transfers: [sshTransfer(execCommand: '''
echo "INFO: Downloading $filename from $ReleaseNumber"
echo "INFO: $serverHostname"
''', execTimeout: 120000, sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
}
}
}
}
|