everything seems to be working fine.
but got failure message
i use this pipline script
pipeline {
// Run on agent with label 'ststor01'
agent { label 'ststor01' }
// Pipeline stages
stages {
// Deploy stage
stage('Deploy') {
steps {
// Connect to GIT and download the repo code
// Use the Jenkins Credentials by ID: GIT_CREDS
git credentialsId: 'GIT_CREDS', url: 'http://git.stratos.xfusioncorp.com/sarah/web_app.git'
// Transfer all the files we downloaded to /tmp of ststor01
sshPut remote: remote, from: '.', into: '/tmp'
// Finally move all the files from /tmp to /data on ststor01
sshCommand remote: remote, command: "mv -f /tmp/${JOB_NAME}/* /var/www/html"
}
}
}
}