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

[Git publisher error] Tag to push name could not aware jenkins variable

      When i use the Tag to push name as "$BUILD_TIMESTAMP" then it succeeded to push tag

      but add one more variable such as "$BUILD_TIMESTAMP_$BUILD_NUMBER" then $BUILD_TIMESTAMP did not assigned correctly only $BUILD_NUMBER assigned to tag name

      i want to use that name as "20190901_10" but result is "$BUILD_TIMESTAMP_10"

      is there a way to use jenkins variable such above tag name?

          [JENKINS-59257] [Git publisher error] Tag to push name could not aware jenkins variable

          nicolas choi added a comment -

          please anybody help this....

          nicolas choi added a comment - please anybody help this....

          nicolas choi added a comment -

          Dear klimas7 

          Would you please see this issue? thank you in advance

          nicolas choi added a comment - Dear klimas7   Would you please see this issue? thank you in advance

          Hi 

          I'am not sure if this issue is reported in good component.
          But when it comes to way to use variables, please look at a small example

          echo '$S1_$S2: '$S1_$S2
          echo '${S1}_${S2}: '${S1}_${S2}
          

          output:

          [Test] $ /bin/sh -xe /tmp/jenkins502055521052004613.sh
          + echo $S1_$S2: CDE
          $S1_$S2: CDE
          + echo ${S1}_${S2}: XYZ_CDE
          ${S1}_${S2}: XYZ_CDE
          

          Boguslaw Klimas added a comment - Hi  I'am not sure if this issue is reported in good component. But when it comes to way to use variables, please look at a small example echo '$S1_$S2: ' $S1_$S2 echo '${S1}_${S2}: ' ${S1}_${S2} output: [Test] $ /bin/sh -xe /tmp/jenkins502055521052004613.sh + echo $S1_$S2: CDE $S1_$S2: CDE + echo ${S1}_${S2}: XYZ_CDE ${S1}_${S2}: XYZ_CDE

            klimas7 Boguslaw Klimas
            chc7042 nicolas choi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: