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 harborListUrl = "${HARBOR_API}/projects/${params.HARBOR_PROJECT}/repositories?page_size=100"
|
||||||
def services = sh(
|
def services = sh(
|
||||||
script: """
|
script: """
|
||||||
|
HARBOR_LIST_URL="${harborListUrl}"
|
||||||
curl -s -u "\${HARBOR_USER}:\${HARBOR_PASS}" \\
|
curl -s -u "\${HARBOR_USER}:\${HARBOR_PASS}" \\
|
||||||
--connect-timeout 10 --max-time 30 \\
|
--connect-timeout 10 --max-time 30 \\
|
||||||
'${harborListUrl}' \\
|
"\${HARBOR_LIST_URL}" \\
|
||||||
| python3 -c '
|
| python3 -c '
|
||||||
import sys, json
|
import sys, json
|
||||||
repos = json.load(sys.stdin)
|
repos = json.load(sys.stdin)
|
||||||
|
|||||||
Reference in New Issue
Block a user