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

Set an env var with the Bzr rev number in the bzr plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Currently, the bazaar plugin doesn't set an env var like the svn or cvs plugins. Would be really useful. Looks like its just applying this patch

      Index: BazaarSCM.java
      ===================================================================
      --- BazaarSCM.java	(revision 24298)
      +++ BazaarSCM.java	(working copy)
      @@ -%ld,%ld +%ld,%ld @@
       
           @Override
           public void buildEnvVars(AbstractBuild build, Map<String, String> env) {
      +	env.put("BZR_REVISION",this.getRevno().toString())
           }
       
           @Override
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zigarn Alexandre Garnier
              Reporter:
              cskinfill cskinfill
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: