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

Lost deployed artifacts after restart

XMLWordPrintable

      I create a matrix build with Artifact Deployer plugin. I start my new job, I'll wait for it to end. Job has deployed atrifacts. I restart Jenkins. Job has no atrifacts. Build.xml has no info about deployed atrifacts.

      Patch - ArtifactDeployerPublisher.java

          public MatrixAggregator createAggregator(MatrixBuild build, Launcher launcher, BuildListener listener) {
              return new MatrixAggregator(build, launcher, listener) {
      
                  @Override
                  public boolean endRun(MatrixRun run) throws InterruptedException, IOException {
                      boolean result = _perform(run, launcher, listener);
                      run.save(); //it is important !!
                      return result;
                  }
              };
          }
      

            gbois Gregory Boissinot
            jirka_wolny Jirka Wolny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: