Skip to content

RT_TRIGGER_URL causes failure in pipeline if build triggered manually #379

Description

@stewcee

We've added the Artifactory trigger configuration to our Jenkinsfile and it is working as expected when triggered by a change in Artifactory

We followed this example:
https://github.com/jfrog/project-examples/blob/master/jenkins-examples/pipeline-examples/declarative-examples/build-trigger-example/Jenkinsfile

The comments above RT_TRIGGER_URL mention that the value may be empty if the build isn't triggered by a change in Artifactory, however if a user tries to manually trigger this pipeline job, we get the following error:
Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: f8fe75f7-d762-4b5a-999c-b25b1da78862 java.lang.IllegalArgumentException: One or more variables have some issues with their values: RT_TRIGGER_URL

Is there a way to ignore RT_TRIGGER_URL being empty if the build is triggered manually instead of by the Artifactory trigger?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions