-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins 1.599
docker-build-publish-plugin 0.10
token-macro-plugin 1.10
A change was introduced in the docker-build-publish-plugin to enable multiple tags. Tags are delimited by a comma (,).
The Token macro plugin allows you to adjust values to your requirements, using the comma as an operator. In our environment, we have previously used a subset of the Git revision to tag our Docker images. The Token macro used is as follows:
${GIT_REVISION,length=6}
When building using the docker-build-publish plugin, the following error is returned:
[docker-build] $ docker build -t example/delivery:${GIT_REVISION . time="2015-02-27T16:53:52Z" level="fatal" msg="Illegal tag name (${GIT_REVISION): only [A-Za-z0-9_.-] are allowed, minimum 2, maximum 30 in length"
Can the docker-build-publish plugin be fixed to restore compatibility?
[JENKINS-27164] docker-build-publish-plugin broken compatibility with token-macro-plugin
Environment |
Original:
Jenkins version 1.599 docker-build-publish-plugin 0.10 token-macro-plugin 1.10 |
New:
Jenkins 1.599 docker-build-publish-plugin 0.10 token-macro-plugin 1.10 |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 161360 ] | New: JNJira + In-Review [ 208475 ] |
Resolution | Original: Fixed [ 1 ] | |
Status | Original: Closed [ 6 ] | New: In Review [ 10005 ] |
Aren't the variables interpreted before they are put on the command line? I bet the comma splitting is being done before the variables (GIT_REVISION) was being interpreted.