初始化提交
This commit is contained in:
39
jenkins/流水线配置/sit_flymoon_payment.conf
Normal file
39
jenkins/流水线配置/sit_flymoon_payment.conf
Normal file
@@ -0,0 +1,39 @@
|
||||
pipeline {
|
||||
agent any
|
||||
tools{
|
||||
maven 'mvn3.8.8'
|
||||
jdk 'jdk21'
|
||||
}
|
||||
stages {
|
||||
stage('checkout 代码') {
|
||||
steps {
|
||||
git branch: 'sit', credentialsId: 'fly_gitlab_auth', url: 'http://172.24.16.20/root/fly_moon_payment.git'
|
||||
}
|
||||
}
|
||||
stage('Maven 编译') {
|
||||
steps {
|
||||
sh "cd ${WORKSPACE}/ && mvn clean install -P sit -Dmaven.sit.skip=true"
|
||||
}
|
||||
}
|
||||
stage('jar A下线') {
|
||||
steps {
|
||||
echo("1")
|
||||
sh "ssh 192.168.70.18 'sh /data/sh/kill_fly_moon_payment.sh'"
|
||||
}
|
||||
}
|
||||
stage('jar A同步') {
|
||||
steps {
|
||||
echo("2")
|
||||
sh """
|
||||
scp ${WORKSPACE}/target/flymoon-payment.jar 192.168.70.18:/data/webapps/flymoon_payment/
|
||||
"""
|
||||
}
|
||||
}
|
||||
stage('jar A启动') {
|
||||
steps {
|
||||
echo("3")
|
||||
sh """ssh 192.168.70.18 'nohup /data/jdk-21.0.7/bin/java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar /data/webapps/flymoon_agent/flymoon-agent.jar --spring.profiles.active=sit >/data/webapps/flymoon_agent/nohup.out 2>&1 &' """
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user