diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..8b04ce4 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,20 @@ +pipeline { + agent { label 'docker-compose' } + + stages { + stage('Build') { + steps { + git url: "https://github.com/izenk/hello-world.git", branch: 'zii' + echo 'Building..' + sh ('docker-compose build --force-rm') + } + } + stage('Test') { + steps { + echo 'Testing..' + sh ('docker-compose up -d') + sh ('curl -sSvk http://localhost:8080 | grep "world"') + } + } + } +}