Update Jenkinsfile

Signed-off-by: wodnr533 <wodnr533@naver.com>
This commit is contained in:
wodnr533 2025-09-10 13:57:20 +09:00 committed by GitHub
parent fa55671190
commit 45a65f5a8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

6
Jenkinsfile vendored
View file

@ -50,9 +50,9 @@ pipeline {
transfers: [sshTransfer(cleanRemote: false,
excludes: '',
execCommand: '''
docker rm -f $(docker ps -aq)
docker rmi $(docker images -q)
docker run -itd -p 8080:8080 --name=spring-petclinic wodnr8174/spring-petclinic:latest
fuser -k 8080/tcp
export BUILD_ID=Petclinic-Pipeline
nohup java -jar /home/ubuntu/deploy/spring-petclinic-2.7.3.BUILD-SNAPSHOT.jar >> nohup.out 2>&1 &''',
''',
execTimeout: 120000,
flatten: false,