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

Artifacts shown only after all nodes finished

    XMLWordPrintable

    Details

    • Similar Issues:

      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

          mtrakal Matej Trakal created issue -
          mtrakal Matej Trakal made changes -
          Field Original Value New Value
          Description 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)
          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)
          jamesdumay James Dumay made changes -
          Resolution Duplicate [ 3 ]
          Status Open [ 1 ] Resolved [ 5 ]
          jamesdumay James Dumay made changes -
          Epic Link JENKINS-35750 [ 171713 ]
          jbriden Jenn Briden made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              Created:
              Updated:
              Resolved: