Skip to content

Commit 3a73e48

Browse files
authored
Merge pull request #380 from linuxserver/ci-fail
send CI link to PR comment even when the test fails
2 parents 57e5578 + b243a10 commit 3a73e48

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ansible/roles/repository/templates/Jenkinsfile.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ pipeline {
6161
'''
6262
script{
6363
env.EXIT_STATUS = ''
64+
env.CI_TEST_COMPLETED = ''
6465
env.LS_RELEASE = sh(
6566
script: '''docker run --rm quay.io/skopeo/stable:v1 inspect docker://ghcr.io/${LS_USER}/${CONTAINER_NAME}:{{ release_tag }} 2>/dev/null | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''',
6667
returnStdout: true).trim()
@@ -1233,6 +1234,9 @@ pipeline {
12331234
-e BUILD_NUMBER=\"${BUILD_NUMBER}\" \
12341235
-t ghcr.io/linuxserver/ci:${CITEST_IMAGETAG} \
12351236
python3 test_build.py'''
1237+
script{
1238+
env.CI_TEST_COMPLETED = 'true'
1239+
}
12361240
}
12371241
}
12381242
}
@@ -1441,7 +1445,7 @@ EOF
14411445
stage('Pull Request Comment') {
14421446
when {
14431447
not {environment name: 'CHANGE_ID', value: ''}
1444-
environment name: 'EXIT_STATUS', value: ''
1448+
environment name: 'CI_TEST_COMPLETED', value: 'true'
14451449
}
14461450
steps {
14471451
sh '''#! /bin/bash

0 commit comments

Comments
 (0)