Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41253

build parameter not usable in Docker build step

    XMLWordPrintable

Details

    Description

      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
      

      Attachments

        Issue Links

          Activity

            michaelniemand Michael Niemand created issue -
            michaelniemand Michael Niemand made changes -
            Field Original Value New Value
            Description 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}}
            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??
            michaelniemand Michael Niemand made changes -
            Description 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??
            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
            michaelniemand Michael Niemand made changes -
            Description 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
            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}
            michaelniemand Michael Niemand made changes -
            Description 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}
            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}
            michaelniemand Michael Niemand made changes -
            Description 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}
            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}
            michaelniemand Michael Niemand made changes -
            Description 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}
            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

            michaelniemand Michael Niemand made changes -
            Description 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

            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}
            michaelniemand Michael Niemand made changes -
            Description 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}
            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}
            michaelniemand Michael Niemand made changes -
            Description 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}
            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}
            michaelniemand Michael Niemand made changes -
            Description 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}
            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
            michaelniemand Michael Niemand made changes -
            Description 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
            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:



            [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
            michaelniemand Michael Niemand made changes -
            Description 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:



            [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
            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:



            [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
            michaelniemand Michael Niemand made changes -
            Description 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:



            [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
            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


            michaelniemand Michael Niemand made changes -
            Description 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


            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:



            [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


            michaelniemand Michael Niemand made changes -
            Description 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:



            [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


            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}
            michaelniemand Michael Niemand made changes -
            Description 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}
            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

            jared_biel_bt Jared Biel made changes -
            Description 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

            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}
            jared_biel_bt Jared Biel made changes -
            Description 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}
            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}
            okhomenko Oleksandr Khomenko made changes -
            Link This issue is duplicated by JENKINS-41080 [ JENKINS-41080 ]
            albundy83 Grégoire Bellon-Gervais made changes -
            Comment [ Hello,

            we encountered the same issue
            {noformat}
            SEVERE: Error during callback
            com.github.dockerjava.api.exception.InternalServerErrorException: {"message":"Error parsing reference: \"<my_docker_registry>:5043/<my_path>/<my_app>:$ID\" is not a valid repository/tag: invalid reference format"}

                    at com.github.dockerjava.jaxrs.filter.ResponseStatusExceptionFilter.filter(ResponseStatusExceptionFilter.java:53)
                    at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:140)
                    at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:128)
                    at org.glassfish.jersey.process.internal.Stages.process(Stages.java:171)
                    at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:257)
                    at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:701)
                    at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
                    at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
                    at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
                    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
                    at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:697)
                    at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:448)
                    at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:349)
                    at com.github.dockerjava.jaxrs.async.POSTCallbackNotifier.response(POSTCallbackNotifier.java:29)
                    at com.github.dockerjava.jaxrs.async.AbstractCallbackNotifier.call(AbstractCallbackNotifier.java:50)
                    at com.github.dockerjava.jaxrs.async.AbstractCallbackNotifier.call(AbstractCallbackNotifier.java:24)
                    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                    at java.lang.Thread.run(Thread.java:745)

            Feb 05, 2017 9:41:32 PM org.jenkinsci.plugins.dockerbuildstep.DockerBuilder perform
            SEVERE: Failed to execute Docker command Push image: {"message":"Error parsing reference: \"<my_docker_registry>:5043/<my_path>/<my_app>:$ID\" is not a valid repository/tag: invalid reference format"}
            {noformat}

            Rolling back to 1.35 fixes the issue.
            We are under apache tomcat 7.0.59 with oracle java 1.8.0_111 and docker 1.13.0-0~debian-wheezy.
            Jenkins is 1.651.3 ]
            albundy83 Grégoire Bellon-Gervais made changes -
            Comment [ For test purpose, I have tried to put a backslash in front of my parameter ($ID) in the field "Name of the image to tag (repository/image:tag)" for tag command : "<my_path>/<my_app>:\$ID"
            But I still got an error even if this time, the $ID is correctly replaced :
            {noformat}
            Feb 05, 2017 9:42:38 PM org.jenkinsci.plugins.dockerbuildstep.DockerBuilder perform
            SEVERE: Failed to execute Docker command Tag image: {"message":"Error parsing reference: \"<my_path>/<my_app>:\\\"37c3adc3454bd0eb1b24a9974d78a4efda5077a0\\\"\" is not a valid repository/tag: invalid reference format"}
            {noformat}
            ]

            People

              vjuranek vjuranek
              michaelniemand Michael Niemand
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: