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

link to archived build artifacts is hidden until pipeline has finished

    XMLWordPrintable

Details

    • Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Minor
    • Resolution: Fixed
    • core
    • Jenkins 2.x, Pipeline job.
    • 2.300

    Description

      jglick
      klrmn: hah. Works fine in stage view, but https://github.com/jenkinsci/jenkins/blob/ee447af7e8e283ff50032532a571766f810ea061/core/src/main/resources/lib/hudson/artifactList.jelly#L44 explicitly hides it during the build, for no reason I can see.

      Test case: stage 'All'; node

      {writeFile file: 'f.txt', text: 'hello'; archive 'f.txt'; input 'hold on'}

      Workaround: manually append `artifact/` to build index URL.

      Attachments

        Issue Links

          Activity

            matthiasbalke Matthias Balke added a comment - - edited

            mike_kingsbury: I have a similar scenario. Good news there already is a link (download icon ) within the pipeline view next to the changes. This link is displayed while the input step is waiting for confirmation. So this should solve your problem.

            matthiasbalke Matthias Balke added a comment - - edited mike_kingsbury : I have a similar scenario. Good news there already is a link (download icon ) within the pipeline view next to the changes. This link is displayed while the input step is waiting for confirmation. So this should solve your problem.
            kivagant Eugene G added a comment -

            matthiasbalke, where do you see the download icon? I have a prompt dialog in my pipeline and when it's waiting for a user's response, nobody can see archived artifacts.

            Do you know any workarounds? Is it possible to write own function in a shared library that will attach files to the build immediately?

            kivagant Eugene G added a comment - matthiasbalke , where do you see the download icon? I have a prompt dialog in my pipeline and when it's waiting for a user's response, nobody can see archived artifacts. Do you know any workarounds? Is it possible to write own function in a shared library that will attach files to the build immediately?

            It’s here, not on the page where you see details about a specific build but on the page above that one, where you see information about all builds in a branch or project.

            haw777 Christopher Head added a comment - It’s here, not on the page where you see details about a specific build but on the page above that one, where you see information about all builds in a branch or project.
            kivagant Eugene G added a comment -

            Thank you, haw777, it works!

            kivagant Eugene G added a comment - Thank you, haw777 , it works!
            teilo James Nord added a comment -

            you can also go directly to $BUILD_URL/artifact to see the list.

            > Now there's an archive around that doesn't have all the things in it.

            already possible today via BlueOcean, stage view or the direct link?

            Is it an issue if the artifact doesn't have all the things in it - after all the build is marked as in progress - so this should be the expected behaviour?

            teilo James Nord added a comment - you can also go directly to $BUILD_URL/artifact to see the list. > Now there's an archive around that doesn't have all the things in it. already possible today via BlueOcean, stage view or the direct link? Is it an issue if the artifact doesn't have all the things in it - after all the build is marked as in progress - so this should be the expected behaviour?

            People

              jglick Jesse Glick
              klrmn Leah Klearman
              Votes:
              11 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: