Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
chasegawa committed Jul 25, 2022
2 parents 37b46d8 + 03e3cb1 commit 6f6c094
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,6 @@ pipeline {
}
}
}

stage('Build Docker images') {
when {
expression {
return GIT_BRANCH in ['master']
}
}
steps {
sh '''./gradlew docker -x test
'''
}
}

stage('Deploy') {
when {
expression {
return GIT_BRANCH in ['master']
}
}
steps {
sh '''
docker stop shibui || true && docker rm shibui || true
docker run -d --restart always --name shibui -p 8080:8080 -v /etc/shibui:/conf -v /etc/shibui/application.yml:/application.yml -m 2GB --memory-swap=4GB --entrypoint /usr/bin/java unicon/shibui:latest -Xmx1G -jar app.war
'''
}
}
}
post {
failure {
Expand All @@ -54,4 +28,4 @@ pipeline {
cleanWs()
}
}
}
}

0 comments on commit 6f6c094

Please sign in to comment.