From 262b4d897406769f0f1388a24916b662bd912511 Mon Sep 17 00:00:00 2001 From: Ilia Zenkevich Date: Thu, 22 Jun 2017 12:25:02 +0000 Subject: [PATCH] Jenkinsfile --- Jenkinsfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Jenkinsfile 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"') + } + } + } +}