node("cm-linux") {
try {
def allPushIdc="Y"
stage('CNA selenium auto deploy: Checkout the codes from GitHub') {
sshagent(credentials: ['my id'])
Unknown macro: { sh ''' rm -rf ./* rm -rf .git/ git init ''' checkout scm}
}
stage('CNA selenium auto deploy: package the code')
Unknown macro: { sh 'pwd' sh 'ls -lta' sh 'tar -cvf cna_selenium.tar ./' sh 'bzip2 cna_selenium.tar' }
stage('CNA selenium auto deploy: copy the package to target server') {
sshagent(credentials: ['my id'])
Unknown macro: { sh 'shell cmds' }
}
}
catch (any)
Unknown macro: { currentBuild.result = 'FAILURE' throw any }
finally
Unknown macro: { step([$class}
}