jenkinsci / artifactory-artifact-manager-plugin

artifactory-artifact-manager-plugin
https://plugins.jenkins.io/artifactory-artifact-manager/
MIT License
0 stars 3 forks source link

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

Closed jonesbusy closed 3 months ago

jonesbusy commented 3 months ago

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
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [ ] Link to relevant issues in GitHub or Jira
- [ ] Link to relevant pull requests, esp. upstream and downstream changes
- [ ] Ensure you have provided tests - that demonstrates feature works or fixes the issue