Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log in to your Bitbucket repository and navigate to Repository Settings > Hooks > Enable or click the Edit setting for Webhooks to Jenkins Server icon.

  2. Click the  Advanced Configuration taband locate URL Parameters at the bottom of the dialog.

  3. Enter the URL parameter into the parameter field. The rules for the parameters are as follows:

    • The formatting for the URL parameter is DESIRED_VARIABLE_NAME={PARAMETER_NAME}

    • Every parameter starts on a new line.

    • The name given to your parameter is how you reference the parameter in Jenkins. In our example the parameter name is TARGET_BRANCH.

    • To pull information from Bitbucket to use as a parameter (like the branch name), refer to the Available parameters section and enter the parameter on the right side of the equal sign surrounded with curly braces {BRANCH_NAME}.

    • To use your own custom value, eliminate the curly braces and enter the value to the right of the equal sign.

...