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

ComputedFolder shows BuildAuthorizationToken configuration but does not actually support it

    XMLWordPrintable

Details

    Description

      It's not possible to enable Trigger builds remotely. The setting will not be persisted even if the option can be set. (The other Build Triggers can be set and are honored)

      Attachments

        Issue Links

          Activity

            jglick Jesse Glick added a comment -

            Is this a standalone project (thus, bug), or a branch project (thus, possibly duplicate of JENKINS-34005)? Steps to reproduce from scratch? Exact plugin versions?

            jglick Jesse Glick added a comment - Is this a standalone project (thus, bug), or a branch project (thus, possibly duplicate of JENKINS-34005 )? Steps to reproduce from scratch? Exact plugin versions?
            reinhapa Patrick Reinhart added a comment - - edited

            I just tried to do the same thing on Jenkins 2.5 but there the remote trigger option is gone...
            Use the LTS Jenkins Version with the actual Pipeline plugins and create a new Pipeline-Multibranch item using the Pipeline script from SCM definition with the URL https://github.com/reinhapa/junit-compat.git

            Set the Trigger builds remotely (e.g., from scripts) option under Build Triggers

            After saving and re-open the build trigger setting for remote triggering is no longer active.

            Used Versions:
            Jenkins 1.642.2
            Pipeline-Multibranch: 1.13

            reinhapa Patrick Reinhart added a comment - - edited I just tried to do the same thing on Jenkins 2.5 but there the remote trigger option is gone... Use the LTS Jenkins Version with the actual Pipeline plugins and create a new Pipeline-Multibranch item using the Pipeline script from SCM definition with the URL https://github.com/reinhapa/junit-compat.git Set the Trigger builds remotely (e.g., from scripts) option under Build Triggers After saving and re-open the build trigger setting for remote triggering is no longer active. Used Versions: Jenkins 1.642.2 Pipeline-Multibranch: 1.13
            gijsk Gijs Kunze added a comment -

            I'm affected by this as well (both in Jenkins 2.0 and 2.6, multibranch plugin 2.4) using a github source but even if I specify no source at all the trigger setting doesn't persist.

            gijsk Gijs Kunze added a comment - I'm affected by this as well (both in Jenkins 2.0 and 2.6, multibranch plugin 2.4) using a github source but even if I specify no source at all the trigger setting doesn't persist.
            jglick Jesse Glick added a comment -

            Set the Trigger builds remotely (e.g., from scripts) option under Build Triggers

            Sorry, where? There is no such option for multibranch projects.

            jglick Jesse Glick added a comment - Set the Trigger builds remotely (e.g., from scripts) option under Build Triggers Sorry, where? There is no such option for multibranch projects.
            gijsk Gijs Kunze added a comment -

            Hmm, it must be another plugin that causes the option to be there then, because I definitely have the option.

            Could be the "Build Token Root Plugin"

            gijsk Gijs Kunze added a comment - Hmm, it must be another plugin that causes the option to be there then, because I definitely have the option. Could be the "Build Token Root Plugin"
            reinhapa Patrick Reinhart added a comment - - edited

            Screenshot multibranch pipeline setup dialog with the "Trigger Remote Build" as visible within Jenkins ver. 1.642.2 and Pipeline plugin version 1.13

            reinhapa Patrick Reinhart added a comment - - edited Screenshot multibranch pipeline setup dialog with the "Trigger Remote Build" as visible within Jenkins ver. 1.642.2 and Pipeline plugin version 1.13
            superboum Quentin Dufour added a comment - - edited

            I've the same problem. I can check the box and enter a token, but when I click on save, this field is reset.
            I'm on Jenkins 2.9 (and also had this problem on previous versions).
            Seems to be the same bug as JENKINS-35310

            superboum Quentin Dufour added a comment - - edited I've the same problem. I can check the box and enter a token, but when I click on save, this field is reset. I'm on Jenkins 2.9 (and also had this problem on previous versions). Seems to be the same bug as JENKINS-35310
            jglick Jesse Glick added a comment -

            Accidentally edited duplicate, so see explanation there. Summary: a bug only in that the option is even displayed.

            jglick Jesse Glick added a comment - Accidentally edited duplicate, so see explanation there. Summary: a bug only in that the option is even displayed.

            Is there another way to trigger Branch Indexing remotely then?
            .../notifyCommit never finds the project to trigger it...

            cobexer Ing. Christoph Obexer added a comment - Is there another way to trigger Branch Indexing remotely then? .../notifyCommit never finds the project to trigger it...
            jglick Jesse Glick added a comment -

            cobexer

            Is there another way to trigger Branch Indexing remotely then?

            POST to …/build.

            .../notifyCommit never finds the project to trigger it...

            If true, that is a bug, or more likely a misconfiguration.

            jglick Jesse Glick added a comment - cobexer Is there another way to trigger Branch Indexing remotely then? POST to …/build . .../notifyCommit never finds the project to trigger it... If true, that is a bug, or more likely a misconfiguration.
            jglick Jesse Glick added a comment -

            BTW an alternate misinterpretation of the checkbox which should not be here is to set a build token on each branch project inside the folder, i.e. to schedule actually project builds rather than indexing. This is not currently possible; one bullet point in JENKINS-30519 proposes a possible implementation, but really BuildAuthorizationToken is a deprecated system that is fundamentally insecure, and probably ultimately better solved by allowing users to create limited-access tokens.

            jglick Jesse Glick added a comment - BTW an alternate misinterpretation of the checkbox which should not be here is to set a build token on each branch project inside the folder, i.e. to schedule actually project builds rather than indexing. This is not currently possible; one bullet point in JENKINS-30519 proposes a possible implementation, but really BuildAuthorizationToken is a deprecated system that is fundamentally insecure, and probably ultimately better solved by allowing users to create limited-access tokens.
            dawi Daniel Wilmer added a comment - - edited

            jglick Thanks for clarification.

            I just wanted to verify that /notifyCommit works fine.
            Jenkins Users, just be sure to use exactly the same repository urls in the job configuration and notification url.

            dawi Daniel Wilmer added a comment - - edited jglick Thanks for clarification. I just wanted to verify that /notifyCommit works fine. Jenkins Users, just be sure to use exactly the same repository urls in the job configuration and notification url. works: Multibranch pipeline repository url: git@gitlab:some/project.git Multibranch pipeline notification url: https://jenkins/git/notifyCommit?url=git@gitlab:some/project.git works: Multibranch pipeline repository url: git@gitlab.intranet:some/project.git Multibranch pipeline notification url: https://jenkins/git/notifyCommit?url=git@gitlab.intranet:some/project.git does not work (misconfiguration): Multibranch pipeline repository url: git@gitlab.intranet:some/project.git Multibranch pipeline notification url: https://jenkins/git/notifyCommit?url=git@gitlab:some/project.git

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder.java
            src/main/resources/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder/configure-details.jelly
            src/main/resources/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder/configure-details.properties
            src/main/resources/com/cloudbees/hudson/plugins/folder/computed/Messages.properties
            http://jenkins-ci.org/commit/cloudbees-folder-plugin/9c378bea8901a0fddd0bdcea0783b98dae7d1078
            Log:
            [FIXED JENKINS-40921][FIXED JENKINS-33020] Only display triggers that make sense for a folder computation

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder.java src/main/resources/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder/configure-details.jelly src/main/resources/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder/configure-details.properties src/main/resources/com/cloudbees/hudson/plugins/folder/computed/Messages.properties http://jenkins-ci.org/commit/cloudbees-folder-plugin/9c378bea8901a0fddd0bdcea0783b98dae7d1078 Log: [FIXED JENKINS-40921] [FIXED JENKINS-33020] Only display triggers that make sense for a folder computation

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder.java
            src/main/resources/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder/configure-details.jelly
            src/main/resources/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder/configure-details.properties
            src/main/resources/com/cloudbees/hudson/plugins/folder/computed/Messages.properties
            src/test/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolderTest.java
            http://jenkins-ci.org/commit/cloudbees-folder-plugin/0d35973205f9bf79eee02ba36dc380f02b6ecc0a
            Log:
            Merge pull request #89 from stephenc/jenkins-40921

            [FIXED JENKINS-40921][FIXED JENKINS-33020] Only display triggers that make sense for a folder computation

            Compare: https://github.com/jenkinsci/cloudbees-folder-plugin/compare/ea44cb643427...0d35973205f9

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder.java src/main/resources/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder/configure-details.jelly src/main/resources/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder/configure-details.properties src/main/resources/com/cloudbees/hudson/plugins/folder/computed/Messages.properties src/test/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolderTest.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/0d35973205f9bf79eee02ba36dc380f02b6ecc0a Log: Merge pull request #89 from stephenc/jenkins-40921 [FIXED JENKINS-40921] [FIXED JENKINS-33020] Only display triggers that make sense for a folder computation Compare: https://github.com/jenkinsci/cloudbees-folder-plugin/compare/ea44cb643427...0d35973205f9

            cloudbees-folders 6.0.0

            stephenconnolly Stephen Connolly added a comment - cloudbees-folders 6.0.0

            People

              stephenconnolly Stephen Connolly
              reinhapa Patrick Reinhart
              Votes:
              19 Vote for this issue
              Watchers:
              26 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: