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

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

    Details

    • Similar Issues:

      Description

      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?

        Attachments

          Activity

          Hide
          chc7042 nicolas choi added a comment -

          please anybody help this....

          Show
          chc7042 nicolas choi added a comment - please anybody help this....
          Hide
          chc7042 nicolas choi added a comment -

          Dear Boguslaw Klimas 

          Would you please see this issue? thank you in advance

          Show
          chc7042 nicolas choi added a comment - Dear Boguslaw Klimas   Would you please see this issue? thank you in advance
          Hide
          klimas7 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
          
          Show
          klimas7 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

            People

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

              Dates

              • Created:
                Updated: