|
@@ -4,13 +4,13 @@ pipeline {
|
|
|
stage('build') {
|
|
stage('build') {
|
|
|
steps {
|
|
steps {
|
|
|
script {
|
|
script {
|
|
|
- if(env.JOB_NAME == 'DEV_inversys_frontend'){
|
|
|
|
|
|
|
+ if(env.JOB_NAME == 'DEV_Inversys_frontend'){
|
|
|
sh '''
|
|
sh '''
|
|
|
cd /opt/inversys/app/frontend/
|
|
cd /opt/inversys/app/frontend/
|
|
|
git pull
|
|
git pull
|
|
|
'''
|
|
'''
|
|
|
}
|
|
}
|
|
|
- else if(env.JOB_NAME == 'TST_inversys_frontend'){
|
|
|
|
|
|
|
+ else if(env.JOB_NAME == 'TST_Inversys_frontend'){
|
|
|
sshagent(credentials: ['deployment-key']) {
|
|
sshagent(credentials: ['deployment-key']) {
|
|
|
sh '''
|
|
sh '''
|
|
|
ssh deploy@192.168.98.48 'cd /opt/inversys/app/frontend/ && git pull'
|
|
ssh deploy@192.168.98.48 'cd /opt/inversys/app/frontend/ && git pull'
|
|
@@ -28,13 +28,13 @@ pipeline {
|
|
|
stage('Deploy') {
|
|
stage('Deploy') {
|
|
|
steps {
|
|
steps {
|
|
|
script {
|
|
script {
|
|
|
- if(env.JOB_NAME == 'DEV_inversys_frontend'){
|
|
|
|
|
|
|
+ if(env.JOB_NAME == 'DEV_Inversys_frontend'){
|
|
|
sh '''
|
|
sh '''
|
|
|
cd /opt/inversys/
|
|
cd /opt/inversys/
|
|
|
docker-compose up -d --build frontend
|
|
docker-compose up -d --build frontend
|
|
|
'''
|
|
'''
|
|
|
}
|
|
}
|
|
|
- else if(env.JOB_NAME == 'TST_inversys_frontend'){
|
|
|
|
|
|
|
+ else if(env.JOB_NAME == 'TST_Inversys_frontend'){
|
|
|
sshagent(credentials: ['deployment-key']) {
|
|
sshagent(credentials: ['deployment-key']) {
|
|
|
sh '''
|
|
sh '''
|
|
|
ssh deploy@192.168.98.48 'cd /opt/inversys/ && docker-compose up -d --build frontend'
|
|
ssh deploy@192.168.98.48 'cd /opt/inversys/ && docker-compose up -d --build frontend'
|