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