From 53dbe0b5258b0ae1d575b936970aeab5d87a62a3 Mon Sep 17 00:00:00 2001 From: Clement Date: Thu, 4 Feb 2021 10:46:42 +0800 Subject: [PATCH] Test executing build script --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2d78214..a7eb906 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,13 +3,17 @@ pipeline { stages { stage('build') { steps { - sh "cd scripts ; bash -x ./build-website.sh" sh 'echo "building"' + sh "cd scripts ; bash -x ./build-website.sh" + sh "apt install -y curl" + sh "service httpd status" + sh "service httpd start" } } stage('test') { steps { sh 'echo "hello world"' + sh 'curl http://127.0.0.1:80' sh 'echo "testing"' input "Testing complete. Proceed to deployment?" }