From 82c7247d8af5a9f2c2865813c535ad2f18005d60 Mon Sep 17 00:00:00 2001 From: hllvc Date: Sun, 11 Jul 2021 12:56:08 +0200 Subject: [PATCH] modified Jenkinsfile --- Jenkinsfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 273945654..b99265250 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,22 +17,16 @@ pipeline { } } - stage('MySQL setup') { - steps { - sh 'docker run -d --name petclinic-mysql -e MYSQL_USER=petclinic -e MYSQL_PASSWORD=petclinic -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=petclinic -p 3306:3306 mysql:5.7.8' - } - } - stage('Run') { agent { dockerfile { filename 'Dockerfile.run' dir '.' - args '-d -v $HOME/app:/root/app --link petclinic-mysql' + additionalBuildArgs '-t hllvc/spring-petclinic:latest' } } steps { - echo 'App Running' + sh 'docker-compose up' } }