-
Bug
-
Resolution: Unresolved
-
Major
-
None
Docker build step plugin version: 1.38
Jenkins Version: 2.32.1 LTS
I set a build parameter called VERSION, which I successfully use in a shell build step.
Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error:
[Docker] INFO: Pushing image <our private repository>:5000/path/image${ VERSION }; 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214)
I tried putting just $VERSION in the tag field, resulting in the following error:
[Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE
- is duplicated by
-
JENKINS-41080 java.lang.IllegalStateException: The template variable has no value - since 1.37
-
- Resolved
-
[JENKINS-41253] build parameter not usable in Docker build step
Description |
Original:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {{[Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ...}} I tried putting just $VERSION in the tag field, resulting in the following error: {{[Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE}} |
New:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: ??[Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ...?? I tried putting just $VERSION in the tag field, resulting in the following error: ??[Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE?? |
Description |
Original:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: ??[Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ...?? I tried putting just $VERSION in the tag field, resulting in the following error: ??[Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE?? |
New:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ... I tried putting just $VERSION in the tag field, resulting in the following error: [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE |
Description |
Original:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ... I tried putting just $VERSION in the tag field, resulting in the following error: [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE |
New:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: bq. [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} bq. 12:30:27 ERROR: Build step failed with exception bq. 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value bq. 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) bq. 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) bq. ... I tried putting just $VERSION in the tag field, resulting in the following error: {quote}[Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE{quote} |
Description |
Original:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: bq. [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} bq. 12:30:27 ERROR: Build step failed with exception bq. 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value bq. 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) bq. 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) bq. ... I tried putting just $VERSION in the tag field, resulting in the following error: {quote}[Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE{quote} |
New:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {code:java} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ... {code} I tried putting just $VERSION in the tag field, resulting in the following error: {noformat} [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE {noformat} |
Description |
Original:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {code:java} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ... {code} I tried putting just $VERSION in the tag field, resulting in the following error: {noformat} [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE {noformat} |
New:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {noformat} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ... {noformat} I tried putting just $VERSION in the tag field, resulting in the following error: {noformat} [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE {noformat} |
Description |
Original:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {noformat} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ... {noformat} I tried putting just $VERSION in the tag field, resulting in the following error: {noformat} [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE {noformat} |
New:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {code:logfile} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ... {code} I tried putting just $VERSION in the tag field, resulting in the following error: [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE |
Description |
Original:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {code:logfile} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ... {code} I tried putting just $VERSION in the tag field, resulting in the following error: [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE |
New:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ... {code} I tried putting just $VERSION in the tag field, resulting in the following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE {code} |
Description |
Original:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) ... {code} I tried putting just $VERSION in the tag field, resulting in the following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE {code} |
New:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) {code} I tried putting just $VERSION in the tag field, resulting in the following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE {code} |
Description |
Original:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) {code} I tried putting just $VERSION in the tag field, resulting in the following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE {code} |
New:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214){code} I tried putting just $VERSION in the tag field, resulting in the following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE{code} |
Description |
Original:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:${VERSION} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214){code} I tried putting just $VERSION in the tag field, resulting in the following error: {code:none} [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE{code} |
New:
Docker build step plugin version: 1.38 Jenkins Version: 2.32.1 LTS I set a build parameter called VERSION, which I successfully use in a shell build step. Setting this parameter as tag (I put ${VERSION} in the tag field) in the Docker build step (push image) however fails in following error: {panel:title=log 1} [Docker] INFO: Pushing image <our private repository>:5000/path/image:$\{VERSION\} 12:30:27 ERROR: Build step failed with exception 12:30:27 java.lang.IllegalStateException: The template variable 'VERSION' has no value 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) 12:30:27 at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:214) {panel} I tried putting just $VERSION in the tag field, resulting in the following error: [Docker] INFO: Pushing image <our private repository>:5000/path/image:$VERSION 12:34:28 [Docker] ERROR: Failed to push image:{"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 [Docker] ERROR: command 'Push image' failed: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 ERROR: {"message":"Error parsing reference: \"<our private repository>:5000/path/image:$VERSION\" is not a valid repository/tag"} 12:34:28 12:34:28 Finished: FAILURE |