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

Build Name returns 'Unrecognized macro' errors for everything except ${BUILD_NUMBER}

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • Windows 2008 R2 SP1 x64
      Java 1.6.0_31 x64 from Oracle
      Tomcat 6.0.35
      Jenkins 1.458, freshly installed and never upgraded
      SVN

      My Jenkins instance/project are working just fine and builds work as expected.
      Now I try to use the "build-name-setter" plugin. My goal is to have build names like "svn123build9879".

      I installed the plugin via the plugin manager, and set the new "Build Name" field to "svn${SVN_REVISION}build${BUILD_NUMBER}" (without quotes). It looks like the expected syntax, and I can see ${SVN_REVISION} in my env-vars.html
      However, this leads to the following error in the console log:
      Unrecognized macro 'SVN_REVISION' in 'svn${SVN_REVISION}build${BUILD_NUMBER}'

      I'm available for more info. I searched for similar bugs, sorry if that's not a but but just a misconfiguration, please point me to what you think might be wrong.

          [JENKINS-13347] Build Name returns 'Unrecognized macro' errors for everything except ${BUILD_NUMBER}

          Ronan Jouchet created issue -
          Ronan Jouchet made changes -
          Environment Original: Windows 2008 R2 SP1
          Java 1.6.0_31 x64
          Tomcat 6.0.35
          Jenkins 1.458
          SVN
          New: Windows 2008 R2 SP1 x64
          Java 1.6.0_31 x64 from Oracle
          Tomcat 6.0.35
          Jenkins 1.458, freshly installed and never upgraded
          SVN
          Ronan Jouchet made changes -
          Summary Original: Using ${SVN_REVISION} in build-name-setter Build Name returns error: Unrecognized macro 'SVN_REVISION' New: Build Name returns 'Unrecognized macro' errors for everything except ${BUILD_NUMBER}
          Łukasz Jąder made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ] New: Łukasz Jąder [ ljader ]
          Lev Mishin made changes -
          Assignee Original: Łukasz Jąder [ ljader ] New: Lev Mishin [ le0 ]
          Lev Mishin made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Lev Mishin made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 143811 ] New: JNJira + In-Review [ 205778 ]

            le0 Lev Mishin
            ronj Ronan Jouchet
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: