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

Build Selector lastWithArtifacts() checks in the controller disk for existence of any artifacts for the build

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • s3-plugin
    • None

      When I use s3CopyArtifact with buildSelector as lastWithArtifacts the method apparently the selector returns the latest build number that got some artifact on the disk and no artifact on S3. It should solely check if there is any artifact in S3 and return the latest build number that has at least one artifact in S3. 

       

          [JENKINS-70665] Build Selector lastWithArtifacts() checks in the controller disk for existence of any artifacts for the build

          Markus Winter added a comment -

          The s3 plugin is not implementing an artifact manager. Due to this the lastWithArtifacts build selector will not work as expected.

          You should look into using the artifact-manager-s3 plugin. This is a real artifact manager and works as a replacement for the normal artifact manager with when using the default archiveArtifacts step.

          Markus Winter added a comment - The s3 plugin is not implementing an artifact manager. Due to this the lastWithArtifacts build selector will not work as expected. You should look into using the artifact-manager-s3 plugin. This is a real artifact manager and works as a replacement for the normal artifact manager with when using the default archiveArtifacts step.

            jimilian Alexander A
            neel Neel M
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: