1 Star 0 Fork 3.5K

Aaron88 / O2OA

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Jenkinsfile 1.35 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
pipeline {
agent {label '132'}
stages {
stage('Stop Server') {
steps {
catchError(buildResult: 'SUCCESS') {
sh 'target/o2server/stop_linux.sh'
}
}
}
stage('init') {
steps {
sh 'npm install'
sh 'npm run clear_deploy'
}
}
stage('dependency') {
steps {
sh 'npm run preperation:linux'
}
}
stage('build') {
parallel {
stage('build server') {
steps {
sh 'id'
sh 'npm run build_server'
}
}
stage('build web') {
steps {
sh 'npm run build_web'
}
}
}
}
stage('deploy') {
steps {
sh 'npm run deploy:linux'
sh 'chmod 777 -R target/o2server/jvm'
sh 'chmod 777 -R target/o2server/commons'
sh 'chmod 777 target/o2server/*.sh'
}
}
stage('run') {
steps {
sh 'JENKINS_NODE_COOKIE=dontKillMe nohup target/o2server/start_linux.sh > nohup.out &'
}
}
}
}
Java
1
https://gitee.com/hero_mis/O2OA.git
git@gitee.com:hero_mis/O2OA.git
hero_mis
O2OA
O2OA
master

搜索帮助

14c37bed 8189591 565d56ea 8189591