初始化提交
This commit is contained in:
36
jenkins/流水线配置/us_prod_flymoon_email.conf
Normal file
36
jenkins/流水线配置/us_prod_flymoon_email.conf
Normal file
@@ -0,0 +1,36 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('checkout 代码') {
|
||||
steps {
|
||||
git branch: 'xxx', credentialsId: 'fly_gitlab_auth', url: 'http://172.24.16.20/root/fly_moon_email.git'
|
||||
}
|
||||
}
|
||||
stage('Maven 编译') {
|
||||
steps {
|
||||
sh "cd ${WORKSPACE}/ && mvn clean install -Dmaven.test.skip=true -Pcn"
|
||||
}
|
||||
}
|
||||
stage('jar 下线') {
|
||||
steps {
|
||||
sh "ssh 43.153.98.191 'sh /data/sh/kill_fly_moon_email.sh' "
|
||||
}
|
||||
}
|
||||
stage('jar 同步') {
|
||||
steps {
|
||||
sh """
|
||||
scp ${WORKSPACE}/start/target/start-0.0.1-SNAPSHOT.jar 43.153.98.191:/data/webapps/fly_moon_email_v2/fly-moon-email.jar
|
||||
"""
|
||||
}
|
||||
}
|
||||
stage('jar 启动') {
|
||||
steps {
|
||||
echo("jar 启动")
|
||||
# sh "ssh 43.153.98.191 'nohup /data/jdk1.8.0_181/bin/java -jar /data/webapps/fly_moon_email_v2/fly-moon-email.jar -Xmx8g --spring.profiles.active=prod-cn >/dev/null 2>&1 &' "
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user