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

MultiJobBuild.SubBuild does not contain full job name (if using folders)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • multijob-plugin
    • None

      When using the MultiJob plugin with the CloudBees folder plugin, the MultiJobBuild.SubBuild class contains only the short job name. For example if we have 'MultiJobA' which runs job 'FolderFoo/JobB' as subtask, the info about the build does not contain 'FolderFoo/JobB' but only 'JobB' (the contained URL is fine). Thus, there is no easy way to understand which JobB was executed.

        1. jenkins-multijob-plugin.hpi
          112 kB
        2. build.png
          build.png
          4 kB
        3. screenshot-1.png
          screenshot-1.png
          17 kB

          [JENKINS-30906] MultiJobBuild.SubBuild does not contain full job name (if using folders)

          Vasili Galka created issue -
          Vasili Galka made changes -
          Comment [ @ hagzag Haggai, any chance you can take a look on this? Many thanks! Vasili ]

          Vasili Galka added a comment - - edited

          hagzag Haggai, any chance you can take a look on this? Many thanks! Vasili

          Vasili Galka added a comment - - edited hagzag Haggai, any chance you can take a look on this? Many thanks! Vasili

          hagzag added a comment -

          itai / itaior -> I took a look and didn't quite get how we get the folder name ... we should discuss this today looks like a small fix no ?

          hagzag added a comment - itai / itaior -> I took a look and didn't quite get how we get the folder name ... we should discuss this today looks like a small fix no ?

          Vasili Galka added a comment -

          hagzag As far as I know, project.getFullName() gives the full path e.g. FooFolder/BarFolder/JobA

          Vasili Galka added a comment - hagzag As far as I know, project.getFullName() gives the full path e.g. FooFolder/BarFolder/JobA
          Chen Cohen made changes -
          Attachment New: screenshot-1.png [ 30875 ]

          Chen Cohen added a comment -

          Trying to understand this issue I created the following structure (see screenshot-1)
          Where exactly do you expect to see 'folder1/job1', is it in this view?
          Please elaborate.
          Thanks, Chen.

          Chen Cohen added a comment - Trying to understand this issue I created the following structure (see screenshot-1) Where exactly do you expect to see 'folder1/job1', is it in this view? Please elaborate. Thanks, Chen.
          Vasili Galka made changes -
          Attachment New: build.png [ 30876 ]

          Vasili Galka added a comment -

          Hi Chen,
          No, I don't refer to the project class. I have mentioned the MultiJobBuild.SubBuild class. It contains info about specific build that took place, like #123 you know... See the attached picture. The code building this page has no simple way to know the job was Foo/SvnUpdate.
          Best, Vasili

          Vasili Galka added a comment - Hi Chen, No, I don't refer to the project class. I have mentioned the MultiJobBuild.SubBuild class. It contains info about specific build that took place, like #123 you know... See the attached picture. The code building this page has no simple way to know the job was Foo/SvnUpdate. Best, Vasili

          hagzag added a comment -

          hi vvv444, chenc & I discussed and I have to say we didn't understand the issue yet ...
          Is it the display name of the job when you are in the context of a folder, is it the link to the specific job or maybe a third option you might have described and we both didn't understand yet ...

          Pending you input.
          HP

          hagzag added a comment - hi vvv444 , chenc & I discussed and I have to say we didn't understand the issue yet ... Is it the display name of the job when you are in the context of a folder, is it the link to the specific job or maybe a third option you might have described and we both didn't understand yet ... Pending you input. HP

            chenc Chen Cohen
            vvv444 Vasili Galka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: