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

Artifacts shown only after all nodes finished

    XMLWordPrintable

Details

    Description

      We use Jenkins to build Android project. Using blueocean and pipeline (Jenkinsfile).

      stage('Update Android SDK') {
       node {
         ...
       }
      }
      stage('Build') {
       node {
        // this process take about 3 minutes
        //tell Jenkins to archive the apks
        archiveArtifacts artifacts: 'mobile/build/outputs/apk/*.apk', fingerprint: true
        // we need to archive artifact in this step, because next step take too long time
       }
      }
      stage('Quality') {
       node {
        // static code analyssis, lint, ...
        // this process take more than 10 minutes
        archiveArtifacts artifacts: '**/mobile/build/reports/lint/lint-results.html', fingerprint: true
       }
      }
      

       Problem is, that in stage Build should Jenkins archive artifacts (apks) and show them in https://jenkins.company.com/blue/organizations/jenkins/AndroidMulti/detail/develop/165/artifacts

      But the artifact is shown only after all stages are finished or after manual stop building project. All processes are terminated. It show too. But we need to show artifacts after stage Building and after continue building (testing, analyze code, etc)

      Attachments

        Activity

          jamesdumay James Dumay added a comment - - edited

          Good news is that we've fixed this as part of JENKINS-43600 and it will be available in Blue Ocean 1.1 in the coming weeks

          jamesdumay James Dumay added a comment - - edited Good news is that we've fixed this as part of JENKINS-43600 and it will be available in Blue Ocean 1.1 in the coming weeks
          mtrakal Matej Trakal added a comment -

          I'm sorry for duplicate issue, I search for some same, but din't found . Thanks for info and mark as duplicate.

          mtrakal Matej Trakal added a comment - I'm sorry for duplicate issue, I search for some same, but din't found . Thanks for info and mark as duplicate.
          jamesdumay James Dumay added a comment -

          mtrakal no worries! Would much rather you file a duplicate than no bug at all

          jamesdumay James Dumay added a comment - mtrakal no worries! Would much rather you file a duplicate than no bug at all

          People

            Unassigned Unassigned
            mtrakal Matej Trakal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: