Commit 0240116a by shentao
parents e68a873d bdf7c59b
pipeline {
agent any
stages {
stage('build') {
steps {
sh 'mvn -B -DskipTests clean package'
}
}
stage('Transmit') {
steps {
sh '''scp /home/nbzhiwei/.jenkins/workspace/messageflow_master-6GNPBGECUVJKBB3PMVWSJVUEKAJ6LJRVSWYS27DTLVIBGSA67RGA/target/messageflow.jar zhiwei@115.236.59.91:jar/messageflow
'''
}
}
stage('Deploy') {
steps {
sh 'ssh zhiwei@115.236.59.91 "sh ~/shell/messageflow.sh"'
}
}
stage('Sendmail') {
steps {
emailext(subject: '$DEFAULT_SUBJECT', body: '$DEFAULT_CONTENT', attachLog: true, compressLog: true, postsendScript: '$DEFAULT_POSTSEND_SCRIPT', presendScript: '$DEFAULT_PRESEND_SCRIPT', replyTo: 'zhangjinxiao@zhiweidata.com,yuchengyi@zhiweidata.com', to: 'zhangjinxiao@zhiweidata.com,shentao@zhiweidata.com')
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment