From 3f5ae46e314d7f1dd1b3cb5df414ecfcdaf840a8 Mon Sep 17 00:00:00 2001 From: Paul Caskey Date: Wed, 9 Nov 2022 23:37:43 +0000 Subject: [PATCH] test --- Jenkinsfile | 2 +- tests/fulltest.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f4435d7..55b6fb8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -75,7 +75,7 @@ pipeline { try { echo "Starting tests..." // sh "bin/test.sh 2>&1 | tee debug ; test ${PIPESTATUS[0]} -eq 0" - sh tests/fulltest.sh + sh 'tests/fulltest.sh' // ===> need bats, webisoget on jenkins node, also need to send/set correct image name // echo "Skipping tests for now" } catch (error) { diff --git a/tests/fulltest.sh b/tests/fulltest.sh index fdd4fd0..5c29581 100755 --- a/tests/fulltest.sh +++ b/tests/fulltest.sh @@ -52,9 +52,9 @@ echo "Attempting full-cycle test..." #webisoget -verbose -out ./lastpage.txt -formfile ./sptest.login -url https://sptest.example.edu:8443/secure/index.php #build docker container -pushd ../test-compose/webisoget/ +pushd ../test-compose/webisoget/ &>/dev/null docker build -t webisoget . -popd +popd &>/dev/null docker run --net host -w /webisoget/ -i webisoget /bin/bash -c "rm -f lastpage.txt & webisoget -out ./lastpage.txt -maxhop 100 -timeout 120 -formfile /webisoget/sptest.login -url https://sptest.example.edu:8443/secure/index.php && cat lastpage.txt" > lastpage.txt