Skip to content

jenkins update #388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
30 changes: 30 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
pipeline {
agent { label '!ansible' }
stages {
stage('Check Environment') {
steps {
// Print environment variables to check if Docker is in PATH
bat 'set'
}
}
stage('Clean Workspace') {
steps {
deleteDir() // Deletes the contents of the workspace
}
}
stage('Clone Repository') {
steps {

git url: 'https://github.com/chumaedeogu/example-voting-app.git', branch: 'main'
}
}
stage('docker compose') {
steps {
script{

bat 'docker compose -f docker-compose.yml up -d'
}
}
}
}
}