diff --git a/Jenkinsfile b/Jenkinsfile index 19eb3a2..3871340 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,11 @@ -properties([pipelineTriggers([pollSCM('H * * * *')])]) - pipeline { // The agent requires docker to be installed on it. as this code is run on a single node and WILL NOT be run in any other location, the is real need to specify agents.1 agent any + triggers { + pollSCM('H * * * *') + } + environment { IMAGE_NAME = 'mattisafur/wog' IMAGE_TAG = 'latest' @@ -30,7 +32,7 @@ pipeline { stage('Run') { steps { // start web server - sh 'docker-compose up -d' + sh 'docker compose up -d' } } stage('Test') { @@ -59,7 +61,7 @@ pipeline { stage('Finalize') { steps { // stop web server - sh 'docker-compose down' + sh 'docker compose down' // push image to dockerhub withDockerRegistry([credentialsId: 'dockerhub-mattisafur', url: '']) {