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

Commit

Permalink
Merge pull request #159 from oleg-nenashev/agent/4.3-2
Browse files Browse the repository at this point in the history
[INFRA-1105] - Update the base image to jenkins/agent:4.3-4, cleanup old metadata
  • Loading branch information
oleg-nenashev authored Apr 13, 2020
2 parents f4cafb2 + b0be427 commit efc5710
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 23 deletions.
5 changes: 2 additions & 3 deletions 11/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG version=4.3-1-jdk11
FROM jenkins/slave:$version
ARG version=4.3-4-jdk11
FROM jenkins/agent:$version

ARG version
MAINTAINER Oleg Nenashev <[email protected]>
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 11/nanoserver-1809/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG VERSION=4.3-1
ARG VERSION=4.3-4
FROM jenkins/agent:${VERSION}-nanoserver-1809-jdk11

ARG VERSION
Expand Down
3 changes: 1 addition & 2 deletions 11/windowsservercore-1809/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG VERSION=4.3-1
ARG VERSION=4.3-4
FROM jenkins/agent:${VERSION}-windowsservercore-1809-jdk11

ARG VERSION
LABEL Description="This is a base image, which allows connecting Jenkins agents via JNLP protocols on Windows" Vendor="Jenkins Project" Version="$VERSION"

ARG user=jenkins
Expand Down
5 changes: 2 additions & 3 deletions 8/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG version=4.3-1-alpine
FROM jenkins/slave:$version
ARG version=4.3-4-alpine
FROM jenkins/agent:$version

ARG version
MAINTAINER Oleg Nenashev <[email protected]>
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
5 changes: 2 additions & 3 deletions 8/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG version=4.3-1
FROM jenkins/slave:$version
ARG version=4.3-4
FROM jenkins/agent:$version

ARG version
MAINTAINER Oleg Nenashev <[email protected]>
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
3 changes: 1 addition & 2 deletions 8/nanoserver-1809/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG VERSION=4.3-1
ARG VERSION=4.3-4
FROM jenkins/agent:${VERSION}-nanoserver-1809

ARG VERSION
LABEL Description="This is a base image, which allows connecting Jenkins agents via JNLP protocols on Windows" Vendor="Jenkins Project" Version="$VERSION"

ARG user=jenkins
Expand Down
3 changes: 2 additions & 1 deletion 8/windowsservercore-1809/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

ARG VERSION=4.3-1
ARG VERSION=4.3-4
FROM jenkins/agent:${VERSION}-windowsservercore-1809

LABEL Description="This is a base image, which allows connecting Jenkins agents via JNLP protocols on Windows" Vendor="Jenkins Project" Version="$VERSION"

ARG user=jenkins
Expand Down
7 changes: 3 additions & 4 deletions tests/jnlpAgent.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Import-Module -DisableNameChecking -Force $PSScriptRoot/test_helpers.psm1

$AGENT_IMAGE='jenkins-jnlp-agent'
$AGENT_CONTAINER='pester-jenkins-jnlp-agent'
$AGENT_IMAGE='jenkins-inbound-agent'
$AGENT_CONTAINER='pester-jenkins-inbound-agent'
$SHELL="powershell.exe"

$FOLDER = Get-EnvOrDefault 'FOLDER' ''
$VERSION = Get-EnvOrDefault 'VERSION' '4.0.1-1'
$VERSION = Get-EnvOrDefault 'VERSION' '4.3-4'

$REAL_FOLDER=Resolve-Path -Path "$PSScriptRoot/../${FOLDER}"

Expand Down Expand Up @@ -106,7 +106,6 @@ Describe "[$JDK $FLAVOR] build args" {
}

It 'uses build args correctly' {
#$TEST_VERSION="3.36"
$TEST_VERSION="4.3"
$TEST_USER="foo"

Expand Down
9 changes: 5 additions & 4 deletions tests/tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,18 @@ function teardown () {
cd "${BATS_TEST_DIRNAME}"/.. || false

local ARG_TEST_VERSION
local TEST_VERSION="3.36"
local TEST_VERSION="4.3"
local DOCKER_AGENT_VERSION_SUFFIX="4"
local TEST_USER="root"

if [[ "${FLAVOR}" = "debian" ]]
then
ARG_TEST_VERSION="${TEST_VERSION}-1"
ARG_TEST_VERSION="${TEST_VERSION}-${DOCKER_AGENT_VERSION_SUFFIX}"
elif [[ "${FLAVOR}" = "jdk11" ]]
then
ARG_TEST_VERSION="${TEST_VERSION}-1-jdk11"
ARG_TEST_VERSION="${TEST_VERSION}-${DOCKER_AGENT_VERSION_SUFFIX}-jdk11"
else
ARG_TEST_VERSION="${TEST_VERSION}-1-alpine"
ARG_TEST_VERSION="${TEST_VERSION}-${DOCKER_AGENT_VERSION_SUFFIX}-alpine"
fi

docker build \
Expand Down

0 comments on commit efc5710

Please sign in to comment.