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.
More on Integrations: SonarQube, Nexus, Artifactory, Docker, Trivy
How do you integrate SonarQube with a Jenkins pipeline?IntermediateHow does `waitForQualityGate` work?IntermediateHow do you deploy Maven artifacts to Nexus from Jenkins?IntermediateHow do you publish npm packages or pull dependencies through Nexus or Artifactory?BeginnerHow do you build and push a Docker image from Jenkins on a VM agent?BeginnerHow do you scan an image with Trivy in a pipeline and gate on results?Intermediate