We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f253714 commit 8acb895Copy full SHA for 8acb895
Jenkinsfile
@@ -84,14 +84,10 @@ pipeline {
84
script{
85
env.PACKAGE_TAG = sh(
86
script: '''#!/bin/bash
87
- http_code=$(curl --write-out %{http_code} -s -o /dev/null \
88
- https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt)
89
- if [[ "${http_code}" -ne 200 ]] ; then
90
- echo none
+ if [ -e package_versions.txt ] ; then
+ cat package_versions.txt | md5sum | cut -c1-8
91
else
92
- curl -s \
93
- https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt \
94
- | md5sum | cut -c1-8
+ echo none
95
fi''',
96
returnStdout: true).trim()
97
}
0 commit comments