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

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

      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.

          [JENKINS-41080] java.lang.IllegalStateException: The template variable has no value - since 1.37

          Rene SC created issue -
          Rene SC made changes -
          Description Original: 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.
          New: 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.
          Oleksandr Khomenko made changes -
          Link New: This issue duplicates JENKINS-41253 [ JENKINS-41253 ]
          Grégoire Bellon-Gervais made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: