Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41286

"Trigger builds remotely" not saved in Bitbucket Folder

    Details

    • Similar Issues:

      Description

      I cannot save the token when selecting Trigger Builds Remotely in a Bitbucket Branch Source Organisation Folder.

      Steps to reproduce:

      1. New Item > Bitbucket Team/Project
      2. Select Build Triggers > Trigger Builds Remotely
      3. Enter a token. e.g. TEST
      4. Fill in other details
      5. SAVE

      If you then reopen the configuration, the Trigger Builds Remotely is no longer checked.

        Attachments

          Activity

          Hide
          gareth_dlx Gareth Murphy added a comment -

          Running into the same issue. Could it possibly be a conflict with the webhook functionality provided under the 'Bitbucket Team/Project > Auto-register webhooks' config? Unfortunately, since Bitbucket Server doesn't expose exactly the same webhook functionality as Bitbucket Cloud, fixing the standard remote build triggering to allow kicking off folder computation would be ideal.

          Show
          gareth_dlx Gareth Murphy added a comment - Running into the same issue. Could it possibly be a conflict with the webhook functionality provided under the 'Bitbucket Team/Project > Auto-register webhooks' config? Unfortunately, since Bitbucket Server doesn't expose exactly the same webhook functionality as Bitbucket Cloud, fixing the standard remote build triggering to allow kicking off folder computation would be ideal.
          Hide
          jcutrono joseph cutrono added a comment -

          Under Build triggers i dont even see a save button appearing. Are there any workarounds for this? Is there an API I can call directly?

          Show
          jcutrono joseph cutrono added a comment - Under Build triggers i dont even see a save button appearing. Are there any workarounds for this? Is there an API I can call directly?
          Hide
          alunsford Aaron Lunsford added a comment - - edited

          If I configure the job to trigger remotely and specify a token, I can trigger a folder computation successfully from a POST request even though the setting does not show up in the UI.

          However, this setting does not propagate to any repository folders that the plugin picks up and creates, so you cannot remotely trigger those with a POST request. This means that you have to use polling, which is not desirable.

          Additional Info/Findings

          If I edit config.xml for the repository folder on the server directly and add the following block at the top of the file...

          <project>
            <authToken>some-token</authToken>
          </project>

          ...then I can trigger the build remotely. This setting will get erased when the top level folder computation runs, so I can't recommend using it as a workaround.

          Show
          alunsford Aaron Lunsford added a comment - - edited If I configure the job to trigger remotely and specify a token, I can trigger a folder computation successfully from a POST request even though the setting does not show up in the UI. However, this setting does not propagate to any repository folders that the plugin picks up and creates, so you cannot remotely trigger those with a POST request. This means that you have  to use polling, which is not desirable. Additional Info/Findings If I edit config.xml for the repository folder on the server directly and add the following block at the top of the file... <project> <authToken>some-token</authToken> </project> ...then I can trigger the build remotely. This setting will get erased when the top level folder computation runs, so I can't recommend using it as a workaround.

            People

            • Assignee:
              amuniz Antonio Muñiz
              Reporter:
              bengineer Ben Middleton
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: