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

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

    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

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: