Commit 86ce1f07a23134ec8fb7bfa5c2f4fcd3d5b45776

Authored by George Vlahavas
1 parent 1776f356d9

Use localhost for jenkins

Showing 1 changed file with 2 additions and 6 deletions

kea_testing.groovy View file @ 86ce1f0
... ... @@ -21,7 +21,7 @@
21 21 APP_NAME = "KEA"
22 22 APP_ENV = "production"
23 23 APP_DEBUG = "true"
24   - APP_URL = "http://kea.curex-project.eu"
  24 + APP_URL = "http://localhost"
25 25  
26 26 LOG_CHANNEL = "stack"
27 27  
... ... @@ -60,7 +60,6 @@
60 60  
61 61 stage('Checkout the source code') {
62 62 steps {
63   - sh 'curl -s icanhazip.com'
64 63 checkout scm
65 64 }
66 65 }
... ... @@ -71,8 +70,6 @@
71 70 script {
72 71 docker.withServer("$DEPLOYMENT_HOST", "$DEPLOYMENT_HOST_CREDENTIALS") {
73 72 docker.withRegistry("$PRIVATE_REGISTRY" , 'artifactory') {
74   - sh 'curl -s icanhazip.com'
75   - sh 'hostname;pwd;ls -lR'
76 73 echo 'Deploying the specified Docker containers in DEV server'
77 74 sh 'sh deploy.sh'
78 75 }
... ... @@ -83,7 +80,6 @@
83 80  
84 81 stage('Run tests') {
85 82 steps {
86   - sh 'curl -s icanhazip.com'
87 83 script {
88 84 echo '*************'
89 85 echo '*** TESTS ***'
... ... @@ -92,7 +88,7 @@
92 88 sleep 50
93 89 try {
94 90 String testName = "1. Check that app is running - 200 response code"
95   - String url = "http://kea.curex-project.eu/"
  91 + String url = "$APP_URL"
96 92 String responseCode = sh(label: testName, script: "curl -m 10 -sLI -w '%{http_code}' $url -o /dev/null", returnStdout: true)
97 93 if (responseCode != '200') {
98 94 error("$testName: Returned status code = $responseCode when calling $url")