need to follow redirects to get PIP version

This commit is contained in:
TheLamer 2018-12-04 18:15:18 +08:00
parent 603ea03287
commit 6bc8804141

2
Jenkinsfile vendored
View File

@ -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
}