From deadbca34ff0edb778c66e569c481f3275f5ec84 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 8 Feb 2023 13:50:43 +0900 Subject: [PATCH] More Jenkins testing --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e8b2cc8..a8d19f6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,7 +31,8 @@ pipeline { steps { script { docker.image("albert/headscale-webui:${env.BRANCH_NAME}-${env.BUILD_ID}").inside { - sh 'hostname' + sh 'ls /app' + sh 'curl localhost:5000' } } } @@ -40,7 +41,7 @@ pipeline { options { timeout(time: 5, unit: 'MINUTES') } steps { script { - if (env.BRANCH_NAME == 'testing') { + if (env.BRANCH_NAME == '*-testing') { docker.withRegistry('https://git.sysctl.io/', 'gitea-jenkins-pat') { dockerImage.push("${env.BRANCH_NAME}-${env.BUILD_ID}") }