diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000..41618d6c66 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } + } + } +}