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)

          [JENKINS-43645] Artifacts shown only after all nodes finished

          Matej Trakal created issue -
          Matej Trakal made changes -
          Description Original: We use Jenkins to build Android project. Using blueocean and pipeline (Jenkinsfile).
          {code:java}
          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
           }
          }
          {code}
           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 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)
          New: We use Jenkins to build Android project. Using blueocean and pipeline (Jenkinsfile).
          {code:java}
          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
           }
          }
          {code}
           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)
          James Dumay made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          James Dumay made changes -
          Epic Link New: JENKINS-35750 [ 171713 ]
          Jenn Briden made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: