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

Token evaluation fails in GitPlugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Labels:
      None
    • Environment:
      Jenkins 2.176.3, Ubuntu 14.04
      Environment Injector Plugin - 2.2.1
      Build Name and Description Setter - 2.0.3
      GitPlugin - 3.12.1
      GitClient Plugin - 2.9.0
      TokenMacroPlugin 2.8
    • Similar Issues:

      Description

      We use a macro (${PACKAGE_VERSION}) to push a tag to git after a successful build. 

      This used to work, until we started getting this error:

      ...
      [EnvInject] - Injecting environment variables from a build step.
      [EnvInject] - Injecting as environment variables the properties file path 'build.properties'
      [EnvInject] - Variables injected successfully.
      Failed to evaluate name macro:org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'PACKAGE_VERSION' in '#59 (***-${PACKAGE_VERSION})'
      Archiving artifacts 
      
      

       

        Attachments

          Activity

          moshe_zvi Moshe Zvi created issue -
          markewaite Mark Waite made changes -
          Field Original Value New Value
          Assignee Mark Waite [ markewaite ]
          moshe_zvi Moshe Zvi made changes -
          Attachment config.xml [ 49238 ]
          markewaite Mark Waite made changes -
          Component/s envinject-plugin [ 15893 ]
          moshe_zvi Moshe Zvi made changes -
          Environment Jenkins 2.176.3, Ubuntu 14.04
          GitPlugin 4.0.0-rc
          TokenMacroPlugin 2.8
          Jenkins 2.176.3, Ubuntu 14.04
          Environment Injector Plugin - 2.2.1
          GitPlugin - 3.12.1
          GitClient Plugin - 2.9.0
          TokenMacroPlugin 2.8
          markewaite Mark Waite made changes -
          Component/s git-plugin [ 15543 ]
          markewaite Mark Waite made changes -
          Component/s build-name-setter-plugin [ 15902 ]
          markewaite Mark Waite made changes -
          Assignee Damian Szczepanik [ dszczepanik ]
          moshe_zvi Moshe Zvi made changes -
          Environment Jenkins 2.176.3, Ubuntu 14.04
          Environment Injector Plugin - 2.2.1
          GitPlugin - 3.12.1
          GitClient Plugin - 2.9.0
          TokenMacroPlugin 2.8
          Jenkins 2.176.3, Ubuntu 14.04
          Environment Injector Plugin - 2.2.1
          Build Name and Description Setter - 2.0.3
          GitPlugin - 3.12.1
          GitClient Plugin - 2.9.0
          TokenMacroPlugin 2.8
          dszczepanik Damian Szczepanik made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status Open [ 1 ] Resolved [ 5 ]
          moshe_zvi Moshe Zvi made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status Resolved [ 5 ] In Review [ 10005 ]
          moshe_zvi Moshe Zvi made changes -
          Status In Review [ 10005 ] In Progress [ 3 ]
          moshe_zvi Moshe Zvi made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          moshe_zvi Moshe Zvi made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status In Review [ 10005 ] Resolved [ 5 ]

            People

            Assignee:
            dszczepanik Damian Szczepanik
            Reporter:
            moshe_zvi Moshe Zvi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: