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

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

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • bazaar-plugin
    • None

      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
      

          [JENKINS-4985] Set an env var with the Bzr rev number in the bzr plugin

          cskinfill created issue -
          lifeless made changes -
          Description Original: 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
          New: 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
          {noformat}
          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
          {noformat}
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          x97mdr made changes -
          Attachment New: bazaar-hudson-revision-number.patch [ 19420 ]
          Alexandre Garnier made changes -
          Attachment New: JENKINS-4985.patch [ 19908 ]
          Alexandre Garnier made changes -
          Assignee Original: trondn [ trondn ] New: Alexandre Garnier [ zigarn ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Alexandre Garnier made changes -
          Fix Version/s New: current [ 10162 ]
          Alexandre Garnier made changes -
          Link New: This issue is related to JENKINS-17376 [ JENKINS-17376 ]
          Alexandre Garnier made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 135062 ] New: JNJira + In-Review [ 203234 ]

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

              Created:
              Updated:
              Resolved: