From 6bc8804141c3ea313b414693e55fc22a9fdbecfe Mon Sep 17 00:00:00 2001 From: TheLamer Date: Tue, 4 Dec 2018 18:15:18 +0800 Subject: [PATCH] need to follow redirects to get PIP version --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9711dbc..ed8dc09 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -102,7 +102,7 @@ pipeline { steps{ script{ env.EXT_RELEASE = sh( - script: '''curl -s https://pypi.python.org/pypi/${EXT_PIP}/json |jq -r '. | .info.version' ''', + script: '''curl -sL https://pypi.python.org/pypi/${EXT_PIP}/json |jq -r '. | .info.version' ''', returnStdout: true).trim() env.RELEASE_LINK = 'https://pypi.python.org/pypi/' + env.EXT_PIP }