6 Star 0 Fork 0

联信/linkusPf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Jenkinsfile 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
yeyeye 提交于 2019-04-11 15:07 . 提交develop
#!groovy
pipeline{
agent any
environment {
job_display_name_zh="测试环境/plat51/一键部署"
}
stages{
stage('拉取代码') {
steps {
timestamps{
script{
try{
def exe_script='export LC_CTYPE=zh_CN.UTF-8;cd ${HOME}/deploy/plat51/;git pull origin develop';
sh 'ooxx plat51 plat51 127.0.0.1 ' +'\''+exe_script+'\''
} catch(any) {
currentBuild.result = 'FAILURE'
sh 'echo "拉取代码" > $WORKSPACE/c_build_stage${BUILD_NUMBER}'
throw any
}
}
}
}
}
stage('编译部署') {
steps {
timestamps{
script{
try{
def exe_script='export LC_CTYPE=zh_CN.UTF-8;. /etc/profile;cd ${HOME}/deploy/linkusWeb;ant -f build.xml deploy;';
sh 'ooxx plat51 plat51 127.0.0.1 ' +'\''+exe_script+'\''
} catch(any) {
currentBuild.result = 'FAILURE'
sh 'echo "编译部署" > $WORKSPACE/c_build_stage${BUILD_NUMBER}'
throw any
}
}
}
}
}
stage('重启服务') {
steps {
timestamps{
script{
try{
sh 'ooxx plat51 plat51 127.0.0.1 \'. .bash_profile;sh ${HOME}/tbin/jtrestart.sh\''
} catch(any) {
currentBuild.result = 'FAILURE'
sh 'echo "重启服务" > $WORKSPACE/c_build_stage${BUILD_NUMBER}'
throw any
}
}
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/linkusCode/linkusPf.git
[email protected]:linkusCode/linkusPf.git
linkusCode
linkusPf
linkusPf
develop

搜索帮助