[configuration-as-code] configure role permission names for "Build Failure Analyzer"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[configuration-as-code] configure role permission names for "Build Failure Analyzer"

Bas Spikmans
Hi "Configuration as Code" Team,

I'm using the plugin  "Build Failure Analyzer" https://github.com/jenkinsci/build-failure-analyzer-plugin
Was trying to find out how I can configure the "Build Failure Analyzer" role names in the jenkins.yaml file?


jenkins.yaml

jenkins:
  authorizationStrategy:
    roleStrategy:
      roles:
        global:
           - name: "projectAdmin"
             description: "Project Admin"
             permissions:

               - "Failure/Update"
or
               - "Build_Failure_Analyzer/View"
or
               - "Build_Failure_Analyzer/ViewCauses"
or
               - "BuildFailureAnalyzer/View"
or
               - "BuildFailureAnalyzer/ViewCauses"

but that did not succeed given errors like
    java.lang.IllegalStateException: Cannot resolve permission for ID: Build_Failure_Analyzer/ViewCauses
    at org.jenkinsci.plugins.casc.integrations.rolebasedauth.RoleDefinition.getRole(RoleDefinition.java:57)
    at org.jenkinsci.plugins.casc.integrations.rolebasedauth.RoleDefinition.<init>(RoleDefinition.java:46)
Caused: java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedConstructorAccessor73.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.jenkinsci.plugins.casc.DataBoundConfigurator.configure(DataBoundConfigurator.java:100)


Maybe you could point out where to find these "Role Names", then for other plugins I can find it out myself.

thanx!

kindest regards,
Bas





--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/72287b34-a9f9-4274-b047-87aaaed1f96a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [configuration-as-code] configure role permission names for "Build Failure Analyzer"

Ewelina Wilkosz
will have a look and get back to you!

On Friday, May 11, 2018 at 12:41:10 PM UTC+2, spikkie wrote:
Hi "Configuration as Code" Team,

I'm using the plugin  "Build Failure Analyzer" <a href="https://github.com/jenkinsci/build-failure-analyzer-plugin" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fbuild-failure-analyzer-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEEEHOlgdE7fY_12iszBp_pqSDhDQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fbuild-failure-analyzer-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEEEHOlgdE7fY_12iszBp_pqSDhDQ&#39;;return true;">https://github.com/jenkinsci/build-failure-analyzer-plugin
Was trying to find out how I can configure the "Build Failure Analyzer" role names in the jenkins.yaml file?

I'm using <a href="https://github.com/jenkinsci/configuration-as-code-plugin/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fconfiguration-as-code-plugin%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHn-0VPGYu0SPPWRPJRhjvwiCggFw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fconfiguration-as-code-plugin%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHn-0VPGYu0SPPWRPJRhjvwiCggFw&#39;;return true;">https://github.com/jenkinsci/configuration-as-code-plugin/ Version 0.5-alpha

jenkins.yaml

jenkins:
  authorizationStrategy:
    roleStrategy:
      roles:
        global:
           - name: "projectAdmin"
             description: "Project Admin"
             permissions:

               - "Failure/Update"
or
               - "Build_Failure_Analyzer/View"
or
               - "Build_Failure_Analyzer/ViewCauses"
or
               - "BuildFailureAnalyzer/View"
or
               - "BuildFailureAnalyzer/ViewCauses"

but that did not succeed given errors like
    java.lang.IllegalStateException: Cannot resolve permission for ID: Build_Failure_Analyzer/ViewCauses
    at org.jenkinsci.plugins.casc.integrations.rolebasedauth.RoleDefinition.getRole(RoleDefinition.java:57)
    at org.jenkinsci.plugins.casc.integrations.rolebasedauth.RoleDefinition.<init>(RoleDefinition.java:46)
Caused: java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedConstructorAccessor73.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.jenkinsci.plugins.casc.DataBoundConfigurator.configure(DataBoundConfigurator.java:100)


Maybe you could point out where to find these "Role Names", then for other plugins I can find it out myself.

thanx!

kindest regards,
Bas





--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f9bcafc1-5065-4f56-911a-67f1b3732199%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [configuration-as-code] configure role permission names for "Build Failure Analyzer"

Bas Spikmans
ok thanx

Am Dienstag, 15. Mai 2018 08:15:19 UTC+2 schrieb Ewelina Wilkosz:
will have a look and get back to you!

On Friday, May 11, 2018 at 12:41:10 PM UTC+2, spikkie wrote:
Hi "Configuration as Code" Team,

I'm using the plugin  "Build Failure Analyzer" <a href="https://github.com/jenkinsci/build-failure-analyzer-plugin" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fbuild-failure-analyzer-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEEEHOlgdE7fY_12iszBp_pqSDhDQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fbuild-failure-analyzer-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEEEHOlgdE7fY_12iszBp_pqSDhDQ&#39;;return true;">https://github.com/jenkinsci/build-failure-analyzer-plugin
Was trying to find out how I can configure the "Build Failure Analyzer" role names in the jenkins.yaml file?

I'm using <a href="https://github.com/jenkinsci/configuration-as-code-plugin/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fconfiguration-as-code-plugin%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHn-0VPGYu0SPPWRPJRhjvwiCggFw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fconfiguration-as-code-plugin%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHn-0VPGYu0SPPWRPJRhjvwiCggFw&#39;;return true;">https://github.com/jenkinsci/configuration-as-code-plugin/ Version 0.5-alpha

jenkins.yaml

jenkins:
  authorizationStrategy:
    roleStrategy:
      roles:
        global:
           - name: "projectAdmin"
             description: "Project Admin"
             permissions:

               - "Failure/Update"
or
               - "Build_Failure_Analyzer/View"
or
               - "Build_Failure_Analyzer/ViewCauses"
or
               - "BuildFailureAnalyzer/View"
or
               - "BuildFailureAnalyzer/ViewCauses"

but that did not succeed given errors like
    java.lang.IllegalStateException: Cannot resolve permission for ID: Build_Failure_Analyzer/ViewCauses
    at org.jenkinsci.plugins.casc.integrations.rolebasedauth.RoleDefinition.getRole(RoleDefinition.java:57)
    at org.jenkinsci.plugins.casc.integrations.rolebasedauth.RoleDefinition.<init>(RoleDefinition.java:46)
Caused: java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedConstructorAccessor73.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.jenkinsci.plugins.casc.DataBoundConfigurator.configure(DataBoundConfigurator.java:100)


Maybe you could point out where to find these "Role Names", then for other plugins I can find it out myself.

thanx!

kindest regards,
Bas





--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6b630c4f-e073-4e57-a13a-78d8ced1aee7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.