1 Star 0 Fork 1

ye367/cicd-springboot12

forked from cc/cicd-springboot12 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Jenkinsfile 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
cc 提交于 2021-03-19 21:27 . Jenkinsfile文件
pipeline {
agent any
stages {
stage('pull code') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'Jenkins-auth-http', url: 'https://gitee.com/chenjwei/cicd-springboot12.git']]])
}
}
stage('clean package') {
steps {
sh 'mvn clean package'
}
}
stage('deploy project') {
steps {
sh "scp target/cicd-springboot-1.0-SNAPSHOT.jar root@192.168.234.132:/usr/local"
sshPublisher(publishers: [sshPublisherDesc(configName: 'deploy-server', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '/usr/local/deploy.sh', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yerongli367/cicd-springboot12.git
git@gitee.com:yerongli367/cicd-springboot12.git
yerongli367
cicd-springboot12
cicd-springboot12
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385