fix(jenkins): pass URL via shell variable to avoid glob expansion
This commit is contained in:
@@ -99,9 +99,10 @@ pipeline {
|
||||
def harborListUrl = "${HARBOR_API}/projects/${params.HARBOR_PROJECT}/repositories?page_size=100"
|
||||
def services = sh(
|
||||
script: """
|
||||
HARBOR_LIST_URL="${harborListUrl}"
|
||||
curl -s -u "\${HARBOR_USER}:\${HARBOR_PASS}" \\
|
||||
--connect-timeout 10 --max-time 30 \\
|
||||
'${harborListUrl}' \\
|
||||
"\${HARBOR_LIST_URL}" \\
|
||||
| python3 -c '
|
||||
import sys, json
|
||||
repos = json.load(sys.stdin)
|
||||
|
||||
Reference in New Issue
Block a user