From 86ce1f07a23134ec8fb7bfa5c2f4fcd3d5b45776 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Thu, 15 Apr 2021 11:09:02 +0300 Subject: [PATCH] Use localhost for jenkins --- kea_testing.groovy | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/kea_testing.groovy b/kea_testing.groovy index ae4db18..6ed6dd8 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -21,7 +21,7 @@ pipeline { APP_NAME = "KEA" APP_ENV = "production" APP_DEBUG = "true" - APP_URL = "http://kea.curex-project.eu" + APP_URL = "http://localhost" LOG_CHANNEL = "stack" @@ -60,7 +60,6 @@ pipeline { stage('Checkout the source code') { steps { - sh 'curl -s icanhazip.com' checkout scm } } @@ -71,8 +70,6 @@ pipeline { script { docker.withServer("$DEPLOYMENT_HOST", "$DEPLOYMENT_HOST_CREDENTIALS") { docker.withRegistry("$PRIVATE_REGISTRY" , 'artifactory') { - sh 'curl -s icanhazip.com' - sh 'hostname;pwd;ls -lR' echo 'Deploying the specified Docker containers in DEV server' sh 'sh deploy.sh' } @@ -83,7 +80,6 @@ pipeline { stage('Run tests') { steps { - sh 'curl -s icanhazip.com' script { echo '*************' echo '*** TESTS ***' @@ -92,7 +88,7 @@ pipeline { sleep 50 try { String testName = "1. Check that app is running - 200 response code" - String url = "http://kea.curex-project.eu/" + String url = "$APP_URL" String responseCode = sh(label: testName, script: "curl -m 10 -sLI -w '%{http_code}' $url -o /dev/null", returnStdout: true) if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") -- 2.2.2