Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure to upload path instead of key which sometimes doesn't match #25

Merged

Conversation

jonesbusy
Copy link
Contributor

Fixes #24

Sometimes the filename and the key of the artifact are different.

Ensure to publish the file path instead of the key

[withMaven] artifactsPublisher - Archive artifact pom.xml under test/simple-maven-project-with-tests/1.0-SNAPSHOT/simple-maven-project-with-tests-1.0-SNAPSHOT.pom
[withMaven] artifactsPublisher - Archive artifact target/simple-maven-project-with-tests-1.0-SNAPSHOT.jar under test/simple-maven-project-with-tests/1.0-SNAPSHOT/simple-maven-project-with-tests-1.0-SNAPSHOT.jar

Testing done

pipeline {
    agent any
    stages {
        stage('Build') {
            steps {
                git url: 'https://github.com/jglick/simple-maven-project-with-tests.git'
                withMaven {
                    sh "mvn -Dmaven.test.failure.ignore=true clean package"
                }
            }
        }
    }
}

Submitter checklist

@jonesbusy jonesbusy added the bug For changelog: Minor bug. Will be listed after features label Apr 2, 2024
@jonesbusy jonesbusy self-assigned this Apr 2, 2024
@jonesbusy jonesbusy requested a review from a team as a code owner April 2, 2024 15:56
@jonesbusy jonesbusy merged commit 8015960 into jenkinsci:main Apr 2, 2024
16 checks passed
@jonesbusy jonesbusy deleted the bugfix/use-path-of-file-instead-of-key branch April 2, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For changelog: Minor bug. Will be listed after features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin doesn't seem to work with pipeline-maven-plugin archiver
1 participant