Skip to content

Commit

Permalink
Allow : in build docker image name (#881)
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <[email protected]>
  • Loading branch information
sxa authored Jan 9, 2024
1 parent e910e9d commit f5a1dc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1890,9 +1890,9 @@ class Build {


context.println "[NODE SHIFT] MOVING INTO DOCKER NODE MATCHING LABELNAME ${label}..."
if ( ! ( "${buildConfig.DOCKER_IMAGE}" ==~ /^[A-Za-z0-9\/\.-_]*$/ ) ||
! ( "${buildConfig.DOCKER_ARGS}" ==~ /^[A-Za-z0-9\/\.-_]*$/ ) ) {
throw new Exception("[ERROR] Dubious characters in DOCKER* parameters ${buildConfig.DOCKER_IMAGE}/${buildConfig.DOCKER_ARGS} - aborting");
if ( ! ( "${buildConfig.DOCKER_IMAGE}" ==~ /^[A-Za-z0-9\/\.\-_:]*$/ ) ||
! ( "${buildConfig.DOCKER_ARGS}" ==~ /^[A-Za-z0-9\/\.\-_\ ]*$/ ) ) {
throw new Exception("[ERROR] Dubious characters in DOCKER* image or parameters: ${buildConfig.DOCKER_IMAGE} ${buildConfig.DOCKER_ARGS} - aborting");
}
context.node(label) {
addNodeToBuildDescription()
Expand Down

0 comments on commit f5a1dc3

Please sign in to comment.