1
votes

I have simple job which upload artifact and publish Build info

on Jenkins URL for Build info is https://artifacts.******.com/artifactory/ui/builds/project_name/73/1626838876890/published

but this link should be https://artifacts.******.com/ui/builds/project_name/73/1626838876890/published

without artifactory

what can be issue ?

here is pipeline code:

stage ('Upload Artifactory') {
        steps {
            script { 
                echo "Starting to upload Artifact"                
                rtUpload (
                   "serverId": "Artifact_server",
                   "buildName": JOB_NAME,
                   "buildNumber": BUILD_NUMBER,
                   "spec": """{
                        "files": [{
                            "pattern": "*.zip",
                            "target": "generic/myfolder/"
                        }]
                    }"""
                )
            }
        }
    }
    stage ('Publish build info') {
        steps {
            rtPublishBuildInfo (
                "serverId": "Artifact_server",
                "buildName": JOB_NAME,
                "buildNumber": BUILD_NUMBER
            )
        }
    }
1
What is your Jenkins Artifactory plugin version? - yahavi
Antifactory Plugin Version: 3.12.4 - Ganesh

1 Answers

3
votes

The build-info URL has changed since Artifactory 7. To better support this change in Jenkins Artifactory plugin, an option was added in 3.12.1 to configure the JFrog platform URL in the global configuration.

To make it work, Browse to Manage Jenkins | Configure System | JFrog and set your JFrog platform URL: JFrog instance details