mirror of https://github.com/jenkinsci/docker.git
rename `JENKINS_SHA` to `WAR_SHA` to align with `WAR_URL` renaming
This commit is contained in:
parent
a120baf0ae
commit
2dc353ca00
|
|
@ -82,15 +82,15 @@ else
|
|||
build_opts+=("--push")
|
||||
fi
|
||||
|
||||
JENKINS_SHA="$(curl --disable --fail --silent --show-error --location "https://repo.jenkins-ci.org/releases/org/jenkins-ci/main/jenkins-war/${JENKINS_VERSION}/jenkins-war-${JENKINS_VERSION}.war.sha256")"
|
||||
WAR_SHA="$(curl --disable --fail --silent --show-error --location "https://repo.jenkins-ci.org/releases/org/jenkins-ci/main/jenkins-war/${JENKINS_VERSION}/jenkins-war-${JENKINS_VERSION}.war.sha256")"
|
||||
COMMIT_SHA=$(git rev-parse HEAD)
|
||||
export COMMIT_SHA JENKINS_VERSION JENKINS_SHA LATEST_WEEKLY LATEST_LTS
|
||||
export COMMIT_SHA JENKINS_VERSION WAR_SHA LATEST_WEEKLY LATEST_LTS
|
||||
|
||||
cat <<EOF
|
||||
Using the following settings:
|
||||
* JENKINS_REPO: ${JENKINS_REPO}
|
||||
* JENKINS_VERSION: ${JENKINS_VERSION}
|
||||
* JENKINS_SHA: ${JENKINS_SHA}
|
||||
* WAR_SHA: ${WAR_SHA}
|
||||
* COMMIT_SHA: ${COMMIT_SHA}
|
||||
* LATEST_WEEKLY: ${LATEST_WEEKLY}
|
||||
* LATEST_LTS: ${LATEST_LTS}
|
||||
|
|
|
|||
|
|
@ -17,14 +17,14 @@ def envVars = ['PUBLISH=true']
|
|||
// Set to true in a replay to simulate a LTS build on ci.jenkins.io
|
||||
// It will set the environment variables needed for a LTS
|
||||
// and disable images publication out of caution
|
||||
def SIMULATE_LTS_BUILD = true
|
||||
def SIMULATE_LTS_BUILD = false
|
||||
|
||||
if (SIMULATE_LTS_BUILD) {
|
||||
envVars = [
|
||||
'PUBLISH=false',
|
||||
'TAG_NAME=2.462.3',
|
||||
'JENKINS_VERSION=2.462.3',
|
||||
'JENKINS_SHA=3e53b52a816405e3b10ad07f1c48cd0cb5cb3f893207ef7f9de28415806b93c1'
|
||||
'WAR_SHA=3e53b52a816405e3b10ad07f1c48cd0cb5cb3f893207ef7f9de28415806b93c1'
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ ARG JENKINS_VERSION
|
|||
ENV JENKINS_VERSION=${JENKINS_VERSION:-2.504}
|
||||
|
||||
# jenkins.war checksum, download will be validated using it
|
||||
ARG JENKINS_SHA=efc91d6be8d79dd078e7f930fc4a5f135602d0822a5efe9091808fdd74607d32
|
||||
ARG WAR_SHA=efc91d6be8d79dd078e7f930fc4a5f135602d0822a5efe9091808fdd74607d32
|
||||
|
||||
# Can be used to customize where jenkins.war get downloaded from
|
||||
ARG WAR_URL=https://get.jenkins.io/war/${JENKINS_VERSION}/jenkins.war
|
||||
|
|
@ -101,9 +101,9 @@ ARG WAR_URL=https://get.jenkins.io/war/${JENKINS_VERSION}/jenkins.war
|
|||
# could use ADD but this one does not check Last-Modified header neither does it allow to control checksum
|
||||
# see https://github.com/docker/docker/issues/8331
|
||||
RUN curl -fsSL ${WAR_URL} -o /usr/share/jenkins/jenkins.war \
|
||||
&& echo "${JENKINS_SHA} /usr/share/jenkins/jenkins.war" >/tmp/jenkins_sha \
|
||||
&& sha256sum -c --strict /tmp/jenkins_sha \
|
||||
&& rm -f /tmp/jenkins_sha
|
||||
&& echo "${WAR_SHA} /usr/share/jenkins/jenkins.war" >/tmp/war_sha \
|
||||
&& sha256sum -c --strict /tmp/war_sha \
|
||||
&& rm -f /tmp/war_sha
|
||||
|
||||
ENV JENKINS_UC=https://updates.jenkins.io
|
||||
ENV JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental
|
||||
|
|
@ -113,9 +113,9 @@ RUN chown -R ${user} "$JENKINS_HOME" "$REF"
|
|||
ARG PLUGIN_CLI_VERSION=2.13.2
|
||||
ARG PLUGIN_CLI_URL=https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/${PLUGIN_CLI_VERSION}/jenkins-plugin-manager-${PLUGIN_CLI_VERSION}.jar
|
||||
RUN curl -fsSL ${PLUGIN_CLI_URL} -o /opt/jenkins-plugin-manager.jar \
|
||||
&& echo "$(curl -fsSL "${PLUGIN_CLI_URL}.sha256") /opt/jenkins-plugin-manager.jar" >/tmp/jenkins_sha \
|
||||
&& sha256sum -c --strict /tmp/jenkins_sha \
|
||||
&& rm -f /tmp/jenkins_sha
|
||||
&& echo "$(curl -fsSL "${PLUGIN_CLI_URL}.sha256") /opt/jenkins-plugin-manager.jar" >/tmp/war_sha \
|
||||
&& sha256sum -c --strict /tmp/war_sha \
|
||||
&& rm -f /tmp/war_sha
|
||||
|
||||
# for main web interface:
|
||||
EXPOSE ${http_port}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ services:
|
|||
COMMIT_SHA: ${COMMIT_SHA}
|
||||
JAVA_HOME: "C:/openjdk-17"
|
||||
JAVA_VERSION: 17.0.16_8
|
||||
JENKINS_SHA: ${JENKINS_SHA}
|
||||
WAR_SHA: ${WAR_SHA}
|
||||
JENKINS_VERSION: ${JENKINS_VERSION}
|
||||
WAR_URL: ${WAR_URL}
|
||||
TOOLS_WINDOWS_VERSION: ${TOOLS_WINDOWS_VERSION}
|
||||
|
|
@ -24,7 +24,7 @@ services:
|
|||
COMMIT_SHA: ${COMMIT_SHA}
|
||||
JAVA_HOME: "C:/openjdk-21"
|
||||
JAVA_VERSION: 21.0.8_9
|
||||
JENKINS_SHA: ${JENKINS_SHA}
|
||||
WAR_SHA: ${WAR_SHA}
|
||||
JENKINS_VERSION: ${JENKINS_VERSION}
|
||||
WAR_URL: ${WAR_URL}
|
||||
TOOLS_WINDOWS_VERSION: ${TOOLS_WINDOWS_VERSION}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ ARG JENKINS_VERSION
|
|||
ENV JENKINS_VERSION=${JENKINS_VERSION:-2.504}
|
||||
|
||||
# jenkins.war checksum, download will be validated using it
|
||||
ARG JENKINS_SHA=efc91d6be8d79dd078e7f930fc4a5f135602d0822a5efe9091808fdd74607d32
|
||||
ARG WAR_SHA=efc91d6be8d79dd078e7f930fc4a5f135602d0822a5efe9091808fdd74607d32
|
||||
|
||||
# Can be used to customize where jenkins.war get downloaded from
|
||||
ARG WAR_URL=https://get.jenkins.io/war/${JENKINS_VERSION}/jenkins.war
|
||||
|
|
@ -112,9 +112,9 @@ ARG WAR_URL=https://get.jenkins.io/war/${JENKINS_VERSION}/jenkins.war
|
|||
# could use ADD but this one does not check Last-Modified header neither does it allow to control checksum
|
||||
# see https://github.com/docker/docker/issues/8331
|
||||
RUN curl -fsSL ${WAR_URL} -o /usr/share/jenkins/jenkins.war \
|
||||
&& echo "${JENKINS_SHA} /usr/share/jenkins/jenkins.war" >/tmp/jenkins_sha \
|
||||
&& sha256sum -c --strict /tmp/jenkins_sha \
|
||||
&& rm -f /tmp/jenkins_sha
|
||||
&& echo "${WAR_SHA} /usr/share/jenkins/jenkins.war" >/tmp/war_sha \
|
||||
&& sha256sum -c --strict /tmp/war_sha \
|
||||
&& rm -f /tmp/war_sha
|
||||
|
||||
ENV JENKINS_UC=https://updates.jenkins.io
|
||||
ENV JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental
|
||||
|
|
@ -124,9 +124,9 @@ RUN chown -R ${user} "$JENKINS_HOME" "$REF"
|
|||
ARG PLUGIN_CLI_VERSION=2.13.2
|
||||
ARG PLUGIN_CLI_URL=https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/${PLUGIN_CLI_VERSION}/jenkins-plugin-manager-${PLUGIN_CLI_VERSION}.jar
|
||||
RUN curl -fsSL ${PLUGIN_CLI_URL} -o /opt/jenkins-plugin-manager.jar \
|
||||
&& echo "$(curl -fsSL "${PLUGIN_CLI_URL}.sha256") /opt/jenkins-plugin-manager.jar" >/tmp/jenkins_sha \
|
||||
&& sha256sum -c --strict /tmp/jenkins_sha \
|
||||
&& rm -f /tmp/jenkins_sha
|
||||
&& echo "$(curl -fsSL "${PLUGIN_CLI_URL}.sha256") /opt/jenkins-plugin-manager.jar" >/tmp/war_sha \
|
||||
&& sha256sum -c --strict /tmp/war_sha \
|
||||
&& rm -f /tmp/war_sha
|
||||
|
||||
# for main web interface:
|
||||
EXPOSE ${http_port}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ ARG JENKINS_VERSION
|
|||
ENV JENKINS_VERSION=${JENKINS_VERSION:-2.504}
|
||||
|
||||
# jenkins.war checksum, download will be validated using it
|
||||
ARG JENKINS_SHA=efc91d6be8d79dd078e7f930fc4a5f135602d0822a5efe9091808fdd74607d32
|
||||
ARG WAR_SHA=efc91d6be8d79dd078e7f930fc4a5f135602d0822a5efe9091808fdd74607d32
|
||||
|
||||
# Can be used to customize where jenkins.war get downloaded from
|
||||
ARG WAR_URL=https://get.jenkins.io/war/${JENKINS_VERSION}/jenkins.war
|
||||
|
|
@ -112,9 +112,9 @@ ARG WAR_URL=https://get.jenkins.io/war/${JENKINS_VERSION}/jenkins.war
|
|||
# could use ADD but this one does not check Last-Modified header neither does it allow to control checksum
|
||||
# see https://github.com/docker/docker/issues/8331
|
||||
RUN curl -fsSL ${WAR_URL} -o /usr/share/jenkins/jenkins.war \
|
||||
&& echo "${JENKINS_SHA} /usr/share/jenkins/jenkins.war" >/tmp/jenkins_sha \
|
||||
&& sha256sum -c --strict /tmp/jenkins_sha \
|
||||
&& rm -f /tmp/jenkins_sha
|
||||
&& echo "${WAR_SHA} /usr/share/jenkins/jenkins.war" >/tmp/war_sha \
|
||||
&& sha256sum -c --strict /tmp/war_sha \
|
||||
&& rm -f /tmp/war_sha
|
||||
|
||||
ENV JENKINS_UC=https://updates.jenkins.io
|
||||
ENV JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental
|
||||
|
|
@ -124,9 +124,9 @@ RUN chown -R ${user} "$JENKINS_HOME" "$REF"
|
|||
ARG PLUGIN_CLI_VERSION=2.13.2
|
||||
ARG PLUGIN_CLI_URL=https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/${PLUGIN_CLI_VERSION}/jenkins-plugin-manager-${PLUGIN_CLI_VERSION}.jar
|
||||
RUN curl -fsSL ${PLUGIN_CLI_URL} -o /opt/jenkins-plugin-manager.jar \
|
||||
&& echo "$(curl -fsSL "${PLUGIN_CLI_URL}.sha256") /opt/jenkins-plugin-manager.jar" >/tmp/jenkins_sha \
|
||||
&& sha256sum -c --strict /tmp/jenkins_sha \
|
||||
&& rm -f /tmp/jenkins_sha
|
||||
&& echo "$(curl -fsSL "${PLUGIN_CLI_URL}.sha256") /opt/jenkins-plugin-manager.jar" >/tmp/war_sha \
|
||||
&& sha256sum -c --strict /tmp/war_sha \
|
||||
&& rm -f /tmp/war_sha
|
||||
|
||||
# for main web interface:
|
||||
EXPOSE ${http_port}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ variable "JENKINS_VERSION" {
|
|||
default = "2.504"
|
||||
}
|
||||
|
||||
variable "JENKINS_SHA" {
|
||||
variable "WAR_SHA" {
|
||||
default = "efc91d6be8d79dd078e7f930fc4a5f135602d0822a5efe9091808fdd74607d32"
|
||||
}
|
||||
|
||||
|
|
@ -144,12 +144,12 @@ target "alpine_jdk17" {
|
|||
context = "."
|
||||
args = {
|
||||
JENKINS_VERSION = JENKINS_VERSION
|
||||
JENKINS_SHA = JENKINS_SHA
|
||||
WAR_SHA = WAR_SHA
|
||||
WAR_URL = war_url()
|
||||
COMMIT_SHA = COMMIT_SHA
|
||||
PLUGIN_CLI_VERSION = PLUGIN_CLI_VERSION
|
||||
ALPINE_TAG = ALPINE_FULL_TAG
|
||||
JAVA_VERSION = JAVA17_VERSION
|
||||
WAR_URL = war_url()
|
||||
}
|
||||
tags = [
|
||||
tag(true, "alpine-jdk17"),
|
||||
|
|
@ -165,12 +165,12 @@ target "alpine_jdk21" {
|
|||
context = "."
|
||||
args = {
|
||||
JENKINS_VERSION = JENKINS_VERSION
|
||||
JENKINS_SHA = JENKINS_SHA
|
||||
WAR_SHA = WAR_SHA
|
||||
WAR_URL = war_url()
|
||||
COMMIT_SHA = COMMIT_SHA
|
||||
PLUGIN_CLI_VERSION = PLUGIN_CLI_VERSION
|
||||
ALPINE_TAG = ALPINE_FULL_TAG
|
||||
JAVA_VERSION = JAVA21_VERSION
|
||||
WAR_URL = war_url()
|
||||
}
|
||||
tags = [
|
||||
tag(true, "alpine"),
|
||||
|
|
@ -190,12 +190,12 @@ target "debian_jdk17" {
|
|||
context = "."
|
||||
args = {
|
||||
JENKINS_VERSION = JENKINS_VERSION
|
||||
JENKINS_SHA = JENKINS_SHA
|
||||
WAR_SHA = WAR_SHA
|
||||
WAR_URL = war_url()
|
||||
COMMIT_SHA = COMMIT_SHA
|
||||
PLUGIN_CLI_VERSION = PLUGIN_CLI_VERSION
|
||||
BOOKWORM_TAG = BOOKWORM_TAG
|
||||
JAVA_VERSION = JAVA17_VERSION
|
||||
WAR_URL = war_url()
|
||||
}
|
||||
tags = [
|
||||
tag(true, "jdk17"),
|
||||
|
|
@ -212,12 +212,12 @@ target "debian_jdk21" {
|
|||
context = "."
|
||||
args = {
|
||||
JENKINS_VERSION = JENKINS_VERSION
|
||||
JENKINS_SHA = JENKINS_SHA
|
||||
WAR_SHA = WAR_SHA
|
||||
WAR_URL = war_url()
|
||||
COMMIT_SHA = COMMIT_SHA
|
||||
PLUGIN_CLI_VERSION = PLUGIN_CLI_VERSION
|
||||
BOOKWORM_TAG = BOOKWORM_TAG
|
||||
JAVA_VERSION = JAVA21_VERSION
|
||||
WAR_URL = war_url()
|
||||
}
|
||||
tags = [
|
||||
tag(true, ""),
|
||||
|
|
@ -238,12 +238,12 @@ target "debian_slim_jdk17" {
|
|||
context = "."
|
||||
args = {
|
||||
JENKINS_VERSION = JENKINS_VERSION
|
||||
JENKINS_SHA = JENKINS_SHA
|
||||
WAR_SHA = WAR_SHA
|
||||
WAR_URL = war_url()
|
||||
COMMIT_SHA = COMMIT_SHA
|
||||
PLUGIN_CLI_VERSION = PLUGIN_CLI_VERSION
|
||||
BOOKWORM_TAG = BOOKWORM_TAG
|
||||
JAVA_VERSION = JAVA17_VERSION
|
||||
WAR_URL = war_url()
|
||||
}
|
||||
tags = [
|
||||
tag(true, "slim-jdk17"),
|
||||
|
|
@ -258,12 +258,12 @@ target "debian_slim_jdk21" {
|
|||
context = "."
|
||||
args = {
|
||||
JENKINS_VERSION = JENKINS_VERSION
|
||||
JENKINS_SHA = JENKINS_SHA
|
||||
WAR_SHA = WAR_SHA
|
||||
WAR_URL = war_url()
|
||||
COMMIT_SHA = COMMIT_SHA
|
||||
PLUGIN_CLI_VERSION = PLUGIN_CLI_VERSION
|
||||
BOOKWORM_TAG = BOOKWORM_TAG
|
||||
JAVA_VERSION = JAVA21_VERSION
|
||||
WAR_URL = war_url()
|
||||
}
|
||||
tags = [
|
||||
tag(true, "slim"),
|
||||
|
|
@ -282,11 +282,11 @@ target "rhel_ubi9_jdk17" {
|
|||
context = "."
|
||||
args = {
|
||||
JENKINS_VERSION = JENKINS_VERSION
|
||||
JENKINS_SHA = JENKINS_SHA
|
||||
WAR_SHA = WAR_SHA
|
||||
WAR_URL = war_url()
|
||||
COMMIT_SHA = COMMIT_SHA
|
||||
PLUGIN_CLI_VERSION = PLUGIN_CLI_VERSION
|
||||
JAVA_VERSION = JAVA17_VERSION
|
||||
WAR_URL = war_url()
|
||||
}
|
||||
tags = [
|
||||
tag(true, "rhel-ubi9-jdk17"),
|
||||
|
|
@ -302,11 +302,11 @@ target "rhel_ubi9_jdk21" {
|
|||
context = "."
|
||||
args = {
|
||||
JENKINS_VERSION = JENKINS_VERSION
|
||||
JENKINS_SHA = JENKINS_SHA
|
||||
WAR_SHA = WAR_SHA
|
||||
WAR_URL = war_url()
|
||||
COMMIT_SHA = COMMIT_SHA
|
||||
PLUGIN_CLI_VERSION = PLUGIN_CLI_VERSION
|
||||
JAVA_VERSION = JAVA21_VERSION
|
||||
WAR_URL = war_url()
|
||||
}
|
||||
tags = [
|
||||
tag(true, "rhel-ubi9-jdk21"),
|
||||
|
|
|
|||
2
make.ps1
2
make.ps1
|
|
@ -60,7 +60,7 @@ if ($items[1] -eq 'ltsc2019') {
|
|||
# Retrieve the sha256 corresponding to the war file
|
||||
$jenkinsShaURL = '{0}.sha256' -f $env:WAR_URL
|
||||
$webClient = New-Object System.Net.WebClient
|
||||
$env:JENKINS_SHA = $webClient.DownloadString($jenkinsShaURL).Split(' ')[0]
|
||||
$env:WAR_SHA = $webClient.DownloadString($jenkinsShaURL).Split(' ')[0]
|
||||
|
||||
$env:COMMIT_SHA=$(git rev-parse HEAD)
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ ARG JENKINS_VERSION
|
|||
ENV JENKINS_VERSION=${JENKINS_VERSION:-2.504}
|
||||
|
||||
# jenkins.war checksum, download will be validated using it
|
||||
ARG JENKINS_SHA=efc91d6be8d79dd078e7f930fc4a5f135602d0822a5efe9091808fdd74607d32
|
||||
ARG WAR_SHA=efc91d6be8d79dd078e7f930fc4a5f135602d0822a5efe9091808fdd74607d32
|
||||
|
||||
# Can be used to customize where jenkins.war get downloaded from
|
||||
ARG WAR_URL=https://get.jenkins.io/war/${JENKINS_VERSION}/jenkins.war
|
||||
|
|
@ -103,9 +103,9 @@ ARG WAR_URL=https://get.jenkins.io/war/${JENKINS_VERSION}/jenkins.war
|
|||
# could use ADD but this one does not check Last-Modified header neither does it allow to control checksum
|
||||
# see https://github.com/docker/docker/issues/8331
|
||||
RUN curl -fsSL ${WAR_URL} -o /usr/share/jenkins/jenkins.war \
|
||||
&& echo "${JENKINS_SHA} /usr/share/jenkins/jenkins.war" >/tmp/jenkins_sha \
|
||||
&& sha256sum -c --strict /tmp/jenkins_sha \
|
||||
&& rm -f /tmp/jenkins_sha
|
||||
&& echo "${WAR_SHA} /usr/share/jenkins/jenkins.war" >/tmp/war_sha \
|
||||
&& sha256sum -c --strict /tmp/war_sha \
|
||||
&& rm -f /tmp/war_sha
|
||||
|
||||
ENV JENKINS_UC=https://updates.jenkins.io
|
||||
ENV JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental
|
||||
|
|
@ -115,9 +115,9 @@ RUN chown -R ${user} "$JENKINS_HOME" "$REF"
|
|||
ARG PLUGIN_CLI_VERSION=2.13.2
|
||||
ARG PLUGIN_CLI_URL=https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/${PLUGIN_CLI_VERSION}/jenkins-plugin-manager-${PLUGIN_CLI_VERSION}.jar
|
||||
RUN curl -fsSL ${PLUGIN_CLI_URL} -o /opt/jenkins-plugin-manager.jar \
|
||||
&& echo "$(curl -fsSL "${PLUGIN_CLI_URL}.sha256") /opt/jenkins-plugin-manager.jar" >/tmp/jenkins_sha \
|
||||
&& sha256sum -c --strict /tmp/jenkins_sha \
|
||||
&& rm -f /tmp/jenkins_sha
|
||||
&& echo "$(curl -fsSL "${PLUGIN_CLI_URL}.sha256") /opt/jenkins-plugin-manager.jar" >/tmp/war_sha \
|
||||
&& sha256sum -c --strict /tmp/war_sha \
|
||||
&& rm -f /tmp/war_sha
|
||||
|
||||
# for main web interface:
|
||||
EXPOSE ${http_port}
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ ARG JENKINS_VERSION
|
|||
ENV JENKINS_VERSION=${JENKINS_VERSION:-2.504}
|
||||
|
||||
# jenkins.war checksum, download will be validated using it
|
||||
ARG JENKINS_SHA=efc91d6be8d79dd078e7f930fc4a5f135602d0822a5efe9091808fdd74607d32
|
||||
ARG WAR_SHA=efc91d6be8d79dd078e7f930fc4a5f135602d0822a5efe9091808fdd74607d32
|
||||
|
||||
# Can be used to customize where jenkins.war get downloaded from
|
||||
ARG WAR_URL=https://get.jenkins.io/war/${JENKINS_VERSION}/jenkins.war
|
||||
|
|
@ -105,7 +105,7 @@ ARG WAR_URL=https://get.jenkins.io/war/${JENKINS_VERSION}/jenkins.war
|
|||
# could use ADD but this one does not check Last-Modified header neither does it allow to control checksum
|
||||
# see https://github.com/docker/docker/issues/8331
|
||||
RUN Invoke-WebRequest -Uri "$env:WAR_URL" -OutFile C:/ProgramData/Jenkins/jenkins.war; `
|
||||
if ((Get-FileHash C:/ProgramData/Jenkins/jenkins.war -Algorithm SHA256).Hash -ne $env:JENKINS_SHA) {exit 1}
|
||||
if ((Get-FileHash C:/ProgramData/Jenkins/jenkins.war -Algorithm SHA256).Hash -ne $env:WAR_SHA) {exit 1}
|
||||
|
||||
ENV JENKINS_UC=https://updates.jenkins.io
|
||||
ENV JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental
|
||||
|
|
|
|||
Loading…
Reference in New Issue