You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When publishing maven artifacts to Artifactory using the plugin, the Jenkins build record will include a list of published maven artifacts. In the case of publishing these artifacts to a snapshot repository where the policy is set to unique, the snapshots will named in Artifactory with the timestamp of the publishing (see below).
The links in the Maven artifacts however do not append this timestamp, resulting in a 404 when a user ends up clicking those links.
To Reproduce
Set up artifactory and do a quick set up for maven repositories to create maven repos for this reproduction. Make sure the snapshot policy on the snapshot repos is set to "unique".
Set up the sample maven deploy project to publish to these instances and these repos, set deployArtifacts to true, and run the build to publish the artifacts and build info to artifactory.
Navigate to the "Maven Artifacts" section for this build run in Jenkins.
Click one of the artifact links (here the example is multi1-3.7-SNAPSHOT.jar).
Observe the 404.
Find the actual artifact in Artifactory and note that it has the timestamp added (replacing "SNAPSHOT").
Try entering the URL with the timestamp replacing "SNAPSHOT" appropriately and note that it downloads successfully.
Expected behavior
When we click the link in Jenkins, we do not want to see the 404 but rather for the artifact to be downloaded as described in step 7 of the reproduction above.
Versions
Jenkins Artifactory plugin version: 3.16.2
Jenkins operating system: Version 2.332.3 on Mac
Artifactory Version: 7.41.6
The text was updated successfully, but these errors were encountered:
This issue has been reviewed by our plugin developers who have advised that this is the expected behavior. The links provided are used to access the latest available snapshot. In order to be able to access a snapshot through them, the snapshot should be renamed not to include the timestamp.
Hello, I am facing same issue. What do you mean by "In order to be able to access a snapshot through them, the snapshot should be renamed not to include the timestamp."? Where should this be configured?
Describe the bug
When publishing maven artifacts to Artifactory using the plugin, the Jenkins build record will include a list of published maven artifacts. In the case of publishing these artifacts to a snapshot repository where the policy is set to unique, the snapshots will named in Artifactory with the timestamp of the publishing (see below).
The links in the Maven artifacts however do not append this timestamp, resulting in a 404 when a user ends up clicking those links.
To Reproduce
Set up artifactory and do a quick set up for maven repositories to create maven repos for this reproduction. Make sure the snapshot policy on the snapshot repos is set to "unique".
Set up the sample maven deploy project to publish to these instances and these repos, set deployArtifacts to true, and run the build to publish the artifacts and build info to artifactory.
https://github.com/jfrog/project-examples/blob/master/jenkins-examples/pipeline-examples/scripted-examples/maven-deploy-example/Jenkinsfile
Expected behavior
When we click the link in Jenkins, we do not want to see the 404 but rather for the artifact to be downloaded as described in step 7 of the reproduction above.
Versions
The text was updated successfully, but these errors were encountered: