Skip to content

Commit 22aa6df

Browse files
authored
fix: authenticate remaining curl call of downloadJenkinsWar (#858)
1 parent fc0f0c0 commit 22aa6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/release.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function downloadJenkinsWar() {
125125

126126
# Download WAR from Artifactory. Note: the expected filename is "jenkins.war".
127127
warUrl="https://repo.jenkins-ci.org/${MAVEN_REPOSITORY_NAME}/org/jenkins-ci/main/jenkins-war/${jenkinsVersion}/jenkins-war-${jenkinsVersion}.war"
128-
curl --fail --silent --show-error --location --output "${WAR}" \
128+
curl --fail --silent --show-error --location --user "${MAVEN_REPOSITORY_USERNAME}:${MAVEN_REPOSITORY_PASSWORD}" --output "${WAR}" \
129129
"${warUrl}"
130130

131131
# Download signature from Artifactory (signed by Maven during the release process). Note: the expected filename is "jenkins.war.asc".

0 commit comments

Comments
 (0)