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

HP ALM Plugin - when job is branched only branch appear in HP ALM

    Details

    • Similar Issues:

      Description

      when running "uploadResultToALM" in branched pipeline JOB_NAME is
      JOB_NAME=JOB_NAME/BRANCH
       

      HP ALM will present field "Jenkins Job Name" with only the branch name without the actual job name

        Attachments

          Activity

          Hide
          noama Noam Angel added a comment -

           

           here is the console output 

          http://paste.openstack.org/show/753336/

           

          Show
          noama Noam Angel added a comment -    here is the console output  http://paste.openstack.org/show/753336/  
          Hide
          roy_lu Roy Lu added a comment -

          Were you using a multibranch pipeline job?

          Show
          roy_lu Roy Lu added a comment - Were you using a multibranch pipeline job?
          Hide
          noama Noam Angel added a comment -

          yes

          Show
          noama Noam Angel added a comment - yes
          Hide
          roy_lu Roy Lu added a comment -

          Well. It seems the multibranch pipeline job would make the job path one level more. 

          Usually it should be like:

          /var/lib/jenkins/jobs/featureset022/builds/14/junitResult.xml

          But your case is:

          /var/lib/jenkins/jobs/featureset022/branches/osp14/builds/14/junitResult.xml

          Build got it's parent's name as job name. But it got actually branch name in your case. I'm trying to find how to get actually name in a build.

          Show
          roy_lu Roy Lu added a comment - Well. It seems the multibranch pipeline job would make the job path one level more.  Usually it should be like: /var/lib/jenkins/jobs/featureset022/builds/14/junitResult.xml But your case is: /var/lib/jenkins/jobs/featureset022/branches/osp14/builds/14/junitResult.xml Build got it's parent's name as job name. But it got actually branch name in your case. I'm trying to find how to get actually name in a build.
          Show
          roy_lu Roy Lu added a comment - Looks like it's a common issue. https://issues.jenkins-ci.org/browse/JENKINS-44278 https://stackoverflow.com/questions/43639031/how-to-get-the-displayname-of-a-jenkins-multibranch-pipeline-job

            People

            • Assignee:
              roy_lu Roy Lu
              Reporter:
              noama Noam Angel
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: