Add ${JOB_NAME} macro for "Load rules" field

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: clearcase-plugin
    • None
    • Environment:
      Jenkins 1.438
      Jenkins ClearCase Plug-in 1.3.6
      Debian Linux

      Hi! This is the first time I submit an issue here, so I am sorry if there is a duplicate I did not find.

      I always give my jobs the same name as the root directory of the projects I am building. That's why I think would be convenient to be able to use the ${JOB_NAME} macro in the "Load rules" field. Then I could avoid having to update the "Load rules" field everytime I copy a job.

      Among other things, this affects the lshistory command used to display changes from the last build:

      Current output (when "Project name" is set to "test" and "Load rules" is set to "\foo\${JOB_NAME}"):
      cleartool lshistory -all -since 11-nov-11.18:05:49utc+0000 -fmt '\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \n%c\n' -nco foo\${JOB_NAME}
      Desired output:
      cleartool lshistory -all -since 11-nov-11.18:05:49utc+0000 -fmt '\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \n%c\n' -nco foo\test

            Assignee:
            Vincent Latombe
            Reporter:
            Samuel Moritz
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: