Skip to content

Commit

Permalink
rolled back docker compose commands, fixed pollscm
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisafur committed Aug 15, 2024
1 parent 765cd38 commit 5f76f8b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -30,7 +32,7 @@ pipeline {
stage('Run') {
steps {
// start web server
sh 'docker-compose up -d'
sh 'docker compose up -d'
}
}
stage('Test') {
Expand Down Expand Up @@ -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: '']) {
Expand Down

0 comments on commit 5f76f8b

Please sign in to comment.