Home > Mobile >  How to trigger a multi-branch Jenkins pipeline when artifact is published in Jfrog Artifactory
How to trigger a multi-branch Jenkins pipeline when artifact is published in Jfrog Artifactory

Time:10-29

I'm trying to trigger a Jenkins multi-branch pipeline using the "Artifactory Trigger" plugin. I have set the "Enable Artifactory Trigger" in jenkins multi-branch Pipeline as follows but even when new artifacts are published to the path that is being watched, I never have a new Jenkins job triggered, Am I missing something here? Do I need to set something up on the Artifactory end too? Can someone please help?

enter image description here

CodePudding user response:

Multibranch triggering is supported since Jenkins Artifactory plugin 3.12.1. (Multibranch pipeline trigger

Read more about triggering pipelines here:

  1. Documentation
  2. Scripted pipeline example
  3. Declarative pipeline example

CodePudding user response:

The issue here appears to be with the Artifactory server URL configured.

  1. Have you included any other extra strings apart from the URL? Like, Artifactory 1: http://HOSTNAME/artifactory? I suspect it from the screenshot you have shared.

  2. If yes, consider removing the other extra references and include the URL in the following format,http://ARTIFACTORY_HOSTNAME:ARTIFACTORY_PORT/artifactory

This should help in resolving the reported issue.

  • Related