Interview Prep/Jenkins/Integrations: SonarQube, Nexus, Artifactory, Docker, Trivy

How do you use JFrog Artifactory from Jenkins?

IntermediateConceptIntegrations: SonarQube, Nexus, Artifactory, Docker, Trivy
Answer

The current approach is the JFrog plugin, which installs the JFrog CLI and exposes a jf step authenticated with a configured server:

jf 'rt upload "target/*.jar" libs-release-local/shack-app/${BUILD_NUMBER}/'
jf 'rt build-publish'
jf 'docker push registry.example.com/shack-app:1.4.0'

Build info publishing links artifacts to the Jenkins build for traceability and Xray scanning. The older Artifactory plugin's Groovy DSL (rtUpload, rtServer) is deprecated in favour of jf.

All Jenkins questions Roadmap: Jenkins

More on Integrations: SonarQube, Nexus, Artifactory, Docker, Trivy