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

java.lang.IllegalStateException: The template variable has no value - since 1.37

    XMLWordPrintable

Details

    Description

      Since upgrading from 1.35 to 1.37, environment variables at least in the Tag field of the "Execute Docker Command" -> "Push image" build step seem not to be resolved correctly anymore. It fails with the following error message.

      23:04:27 Successfully built e10497dbbd44
      23:04:27 [Docker] INFO: Pushing image ...kube-system/jenkins:${BUILD_TIMESTAMP}_${BUILD_NUMBER}
      23:04:27 ERROR: Build step failed with exception
      23:04:27 java.lang.IllegalStateException: The template variable 'BUILD_TIMESTAMP' has no value
      

      Jenkins: 2.32.1
      Plugin: 1.37
      Docker: 1.11.2

      Downgrade to 1.35 helps.

      Attachments

        Issue Links

          Activity

            renesc Rene SC created issue -
            renesc Rene SC made changes -
            Field Original Value New Value
            Description Since upgrading from 1.35 to 1.37, environment variables at least in the Tag field of the "Execute Docker Command" -> "Push image" build step seem not to be resolved correctly anymore. It fails with the following error message.


            {code:java}
            23:04:27 Successfully built e10497dbbd44
            23:04:27 [Docker] INFO: Pushing image ...kube-system/jenkins:${BUILD_TIMESTAMP}_${BUILD_NUMBER}
            23:04:27 ERROR: Build step failed with exception
            23:04:27 java.lang.IllegalStateException: The template variable 'BUILD_TIMESTAMP' has no value
            {code}

            Jenkins: 2.32.1
            Plugin: 1.37
            Docker: 1.11.2

            Downgrad to 1.35 helps.
            Since upgrading from 1.35 to 1.37, environment variables at least in the Tag field of the "Execute Docker Command" -> "Push image" build step seem not to be resolved correctly anymore. It fails with the following error message.


            {code:java}
            23:04:27 Successfully built e10497dbbd44
            23:04:27 [Docker] INFO: Pushing image ...kube-system/jenkins:${BUILD_TIMESTAMP}_${BUILD_NUMBER}
            23:04:27 ERROR: Build step failed with exception
            23:04:27 java.lang.IllegalStateException: The template variable 'BUILD_TIMESTAMP' has no value
            {code}

            Jenkins: 2.32.1
            Plugin: 1.37
            Docker: 1.11.2

            Downgrade to 1.35 helps.
            okhomenko Oleksandr Khomenko made changes -
            Link This issue duplicates JENKINS-41253 [ JENKINS-41253 ]
            albundy83 Grégoire Bellon-Gervais made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]

            People

              vjuranek vjuranek
              renesc Rene SC
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: