Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into dependabot/github_actions/master/updatecli…
Browse files Browse the repository at this point in the history
…/updatecli-action-2.35.0
  • Loading branch information
lemeurherve authored Jul 31, 2023
2 parents dd4b438 + d1e5277 commit e3dacf9
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Optional environment variables:

## Windows Jenkins Java Opts

The processing of the JENKINS_JAVA_OPTS environment variable or -JenkinsJavaOpts command line parameter follow the [https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parsing?view=powershell-7.3](command parsing semantics of Powershell). This means that if a parameter contains any characters that are part of an expression in Powershell, it will need to be surrounded by quotes.
The processing of the JENKINS_JAVA_OPTS environment variable or -JenkinsJavaOpts command line parameter follow the [command parsing semantics of Powershell](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parsing?view=powershell-7.3). This means that if a parameter contains any characters that are part of an expression in Powershell, it will need to be surrounded by quotes.
For example:

-XX:+PrintCommandLineFlags --show-version
Expand Down
4 changes: 2 additions & 2 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG version=3131.vf2b_b_798b_ce99-4
ARG version=3131.vf2b_b_798b_ce99-5
ARG JAVA_MAJOR_VERSION=17
FROM jenkins/agent:"${version}"-alpine-jdk"${JAVA_MAJOR_VERSION}"

ARG version=3131.vf2b_b_798b_ce99-4
ARG version=3131.vf2b_b_798b_ce99-5
LABEL Description="This is a base image, which allows connecting Jenkins agents via JNLP protocols" Vendor="Jenkins project" Version="$version"

ARG user=jenkins
Expand Down
4 changes: 4 additions & 0 deletions build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
context: ./
dockerfile: ./windows/nanoserver/Dockerfile
args:
JAVA_MAJOR_VERSION: 11
version: ${PARENT_IMAGE_VERSION}
WINDOWS_VERSION_TAG: ${NANOSERVER_VERSION_TAG}
jdk17-nanoserver:
Expand All @@ -13,6 +14,7 @@ services:
context: ./
dockerfile: ./windows/nanoserver/Dockerfile
args:
JAVA_MAJOR_VERSION: 17
version: ${PARENT_IMAGE_VERSION}
WINDOWS_VERSION_TAG: ${NANOSERVER_VERSION_TAG}
jdk11-windowsservercore:
Expand All @@ -21,6 +23,7 @@ services:
context: ./
dockerfile: ./windows/windowsservercore/Dockerfile
args:
JAVA_MAJOR_VERSION: 11
version: ${PARENT_IMAGE_VERSION}
WINDOWS_VERSION_TAG: ${WINDOWS_VERSION_TAG}
jdk17-windowsservercore:
Expand All @@ -29,5 +32,6 @@ services:
context: ./
dockerfile: ./windows/windowsservercore/Dockerfile
args:
JAVA_MAJOR_VERSION: 17
version: ${PARENT_IMAGE_VERSION}
WINDOWS_VERSION_TAG: ${WINDOWS_VERSION_TAG}
18 changes: 9 additions & 9 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Param(
[Parameter(Position=1)]
[String] $Target = "build",
[String] $Build = '',
[String] $ParentImageVersion = '3131.vf2b_b_798b_ce99-4',
[String] $BuildNumber = '1',
[String] $VersionTag = 'NEXT_TAG_VERSION',
[String] $ParentImageVersion = '3131.vf2b_b_798b_ce99-5',
[switch] $PushVersions = $false
)

Expand Down Expand Up @@ -84,8 +84,8 @@ Invoke-Expression "$baseDockerCmd config --services" 2>$null | ForEach-Object {
$windowsVersion = $items[2]

$baseImage = "${windowsType}-${windowsVersion}"
$versionTag = "${ParentImageVersion}-${BuildNumber}-${image}"
$tags = @( $image, $versionTag )
$completeVersionTag = "${VersionTag}-${image}"
$tags = @( $image, $completeVersionTag )
if($jdkMajorVersion -eq "$defaultJdk") {
$tags += $baseImage
}
Expand Down Expand Up @@ -215,11 +215,11 @@ if($target -eq "publish") {
}

if($PushVersions) {
$buildTag = "$ParentImageVersion-$BuildNumber-$tag"
$buildTag = "$VersionTag-$tag"
if($tag -eq 'latest') {
$buildTag = "$ParentImageVersion-$BuildNumber"
$buildTag = "$VersionTag"
}
Publish-Image "$Build" "${Organization}/${Repository}:${buildTag}"
Publish-Image "$b" "${Organization}/${Repository}:${buildTag}"
if($lastExitCode -ne 0) {
$publishFailed = 1
}
Expand All @@ -234,9 +234,9 @@ if($target -eq "publish") {
}

if($PushVersions) {
$buildTag = "$ParentImageVersion-$BuildNumber-$tag"
$buildTag = "$VersionTag-$tag"
if($tag -eq 'latest') {
$buildTag = "$ParentImageVersion-$BuildNumber"
$buildTag = "$VersionTag"
}
Publish-Image "$b" "${Organization}/${Repository}:${buildTag}"
if($lastExitCode -ne 0) {
Expand Down
4 changes: 2 additions & 2 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG version=3131.vf2b_b_798b_ce99-4
ARG version=3131.vf2b_b_798b_ce99-5
ARG JAVA_MAJOR_VERSION=17
FROM jenkins/agent:"${version}"-jdk"${JAVA_MAJOR_VERSION}"

ARG version=3131.vf2b_b_798b_ce99-4
ARG version=3131.vf2b_b_798b_ce99-5
LABEL Description="This is a base image, which allows connecting Jenkins agents via JNLP protocols" Vendor="Jenkins project" Version="$version"

ARG user=jenkins
Expand Down
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ variable "IMAGE_TAG" {

#### This is for the "parent" image version to use (jenkins/agent:<PARENT_IMAGE_VERSION>-<base-os>)
variable "PARENT_IMAGE_VERSION" {
default = "3131.vf2b_b_798b_ce99-4"
default = "3131.vf2b_b_798b_ce99-5"
}

variable "REGISTRY" {
Expand Down
4 changes: 2 additions & 2 deletions updatecli/updatecli.d/docker-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ targets:
spec:
file: build.ps1
matchpattern: >-
\$ParentImageVersion(.*)=(.*),
ParentImageVersion(.*)=(.*),
replacepattern: >-
$ParentImageVersion${1}= '{{ source "lastVersion" }}',
ParentImageVersion${1}= '{{ source "lastVersion" }}',
scmid: default

actions:
Expand Down
4 changes: 2 additions & 2 deletions windows/nanoserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG version=3131.vf2b_b_798b_ce99-4
ARG version=3131.vf2b_b_798b_ce99-5
ARG JAVA_MAJOR_VERSION=17
ARG WINDOWS_VERSION_TAG=1809
FROM jenkins/agent:"${version}"-jdk"${JAVA_MAJOR_VERSION}"-nanoserver-"${WINDOWS_VERSION_TAG}"

ARG version=3131.vf2b_b_798b_ce99-4
ARG version=3131.vf2b_b_798b_ce99-5
LABEL Description="This is a base image, which allows connecting Jenkins agents via JNLP protocols on Windows" Vendor="Jenkins Project" Version="$version"

COPY jenkins-agent.ps1 C:/ProgramData/Jenkins
Expand Down
4 changes: 2 additions & 2 deletions windows/windowsservercore/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG version=3131.vf2b_b_798b_ce99-4
ARG version=3131.vf2b_b_798b_ce99-5
ARG JAVA_MAJOR_VERSION=17
ARG WINDOWS_VERSION_TAG=ltsc2019
FROM jenkins/agent:"${version}"-jdk"${JAVA_MAJOR_VERSION}"-windowsservercore-"${WINDOWS_VERSION_TAG}"

ARG version=3131.vf2b_b_798b_ce99-4
ARG version=3131.vf2b_b_798b_ce99-5
LABEL Description="This is a base image, which allows connecting Jenkins agents via JNLP protocols on Windows" Vendor="Jenkins Project" Version="$version"

COPY jenkins-agent.ps1 C:/ProgramData/Jenkins
Expand Down

0 comments on commit e3dacf9

Please sign in to comment.