Jenkins test


dongfeier
 

Hello everyone:
    Recently, when I deployed the Jenkins test environment, a similar problem occurred after the task was executed: "no such DSL method 'valgrindreportpublish' found among steps". I look forward to providing a list of Jenkins test dependent plug-ins.
Best regards!


Johann
 

Hi there,

Please find below the plugin usage page from Jenkins. HTH.

Cheers,
Johann

Warning: Scripted pipeline jobs are not detected by this plugin. Support for declarative pipeline jobs is experimental. Number of Jobs: 46 


Jobs by Plugin

Plugin Name

Version

Number of Jobs

Jobs

Has Dependants?

AnsiColor

1.0.0

0

false

Ant Plugin

1.11

0

true

Build Blocker Plugin

1.7.7

12

false

Build Failure Analyzer

2.0.1

968

true

Build Name and Description Setter

2.2.0

0

false

Build Pipeline Plugin

1.5.8

0

false

Build Timeout

1.20

43

false

Checks API plugin

1.7.2

0

true

Code Coverage API Plugin

1.4.1

0

true

Conditional BuildStep

1.4.1

0

true

Config File Provider Plugin

3.8.1

0

true

Confluence Publisher

2.0.6

0

false

Copy Artifact Plugin

1.46.1

0

true

Credentials Binding Plugin

1.27

1

true

Docker Pipeline

1.26

0

false

Email Extension Plugin

2.83

0

true

Email Extension Template Plugin

1.2

0

false

Environment Injector Plugin

2.4.0

0

true

File Operations Plugin

1.11

0

false

Folders Plugin

6.16

0

true

Forensics API Plugin

1.3.0

0

true

Git Forensics Plugin

1.2.0

0

false

GitHub plugin

1.34.1

0

true

GitLab Plugin

1.5.20

16

false

Gradle Plugin

1.37.1

0

true

Groovy

2.4

0

false

HTML Publisher plugin

1.25

0

true

HTTP Request Plugin

1.11

0

false

Ivy Plugin

2.1

0

true

JUnit Plugin

1.53

0

true

Javadoc Plugin

1.6

0

true

Jenkins Artifactory Plugin

3.14.1

0

false

Jenkins BuildResultTrigger Plug-in

0.17

0

false

Jenkins CVS Plug-in

2.19

0

true

Jenkins Clover plugin

4.12.1

0

false

Jenkins Cobertura Plugin

1.16

0

false

Jenkins Cppcheck Plug-in

1.25

0

false

Jenkins Doxygen Plug-in

0.18

0

false

Jenkins Git plugin

4.8.2

2

true

Jenkins Jira plugin

3.5

7

true

Jenkins Job Configuration History Plugin

2.28.1

3

true

Jenkins Libvirt Agents plugin

1.9.2

12

false

Jenkins Mailer Plugin

1.34

0

true

Jenkins Mercurial plugin

2.15

0

false

Jenkins Multijob plugin

1.36

0

true

Jenkins Parameterized Trigger plugin

2.41

0

true

Jenkins PostBuildScript Plugin

3.0.0

0

false

Jenkins SSH plugin

2.6.1

0

false

Jenkins Subversion Plug-in

2.14.4

0

true

Jenkins Throttle Concurrent Builds Plug-in

2.4

12

false

Jenkins Valgrind Plug-in

0.28

0

false

Jenkins Workspace Cleanup Plugin

0.39

0

false

Job and Node ownership plugin

0.13.0

689

false

Lockable Resources plugin

2.11

0

true

Managed Scripts

1.5.4

0

false

Mask Passwords Plugin

3.0

0

false

Matrix Authorization Strategy Plugin

2.6.8

8

true

Maven Integration plugin

3.12

0

true

Pipeline GitHub Notify Step Plugin

1.0.5

0

false

Pipeline Utility Steps

2.10.0

0

false

Pipeline: Basic Steps

2.24

0

true

Pipeline: Build Step

2.15

0

true

Pipeline: Declarative

1.9.1

431

true

Pipeline: GitHub

2.7

0

false

Pipeline: Groovy

2.93

0

true

Pipeline: Input Step

2.12

0

true

Pipeline: Job

2.41

410

true

Pipeline: Milestone Step

1.3.2

0

true

Pipeline: Multibranch

2.26

923

true

Pipeline: Nodes and Processes

2.39

0

true

Pipeline: SCM Step

2.13

0

true

Pipeline: Shared Groovy Libraries

2.21

0

true

Pipeline: Stage Step

2.5

0

true

Plot plugin

2.1.9

0

false

Post build task

1.9

0

false

Publish Over SSH

1.22

0

false

Rebuilder

1.32

12

true

SSH Agent Plugin

1.23

2

false

SSH Pipeline Steps

2.0.0

0

false

Timestamper

1.13

45

false

Token Macro Plugin

266.v44a80cf277fd

0

true

Warnings Next Generation Plugin

9.5.0

0

false

xUnit plugin

3.0.2

0

false

 


Other Plugins

Plugin Name

Version

Has Dependants?

Active Choices Plug-in

2.5.6

false

Analysis Model API Plugin

10.3.0

true

Audit Trail

3.10

false

Authentication Tokens API Plugin

1.4

true

Autofavorite for Blue Ocean

1.2.4

true

Basic Branch Build Strategies Plugin

1.3.2

false

Bitbucket Branch Source Plugin

2.9.11

true

Bitbucket Pipeline for Blue Ocean

1.24.8

true

Blue Ocean

1.24.8

false

Blue Ocean Core JS

1.24.8

true

Blue Ocean Pipeline Editor

1.24.8

true

Bootstrap 4 API Plugin

4.6.0-3

true

Bootstrap 5 API Plugin

5.1.0-3

true

Branch API Plugin

2.6.5

true

Build Blocker Plugin

1.7.7

false

Build Failure Analyzer

2.0.1

true

Build History Metrics plugin

93.v0e17adc6ccea

false

Build Monitor View

1.12+build.201809061734

false

Caffeine API Plugin

2.9.2-29.v717aac953ff3

true

Command Agent Launcher Plugin

1.6

true

Common API for Blue Ocean

1.24.8

true

Config API for Blue Ocean

1.24.8

true

Config AutoRefresh Plugin

1.0

false

Credentials Plugin

2.5

true

DTKit 2 API.

3.0.0

true

Dashboard for Blue Ocean

1.24.8

true

DataTables.net API Plugin

1.10.25-3

true

Disable GitHub Multibranch Status Plugin

1.2

false

Display URL API

2.3.5

true

Display URL for Blue Ocean

2.4.1

true

Docker Commons Plugin

1.17

true

Durable Task Plugin

1.39

true

ECharts API Plugin

5.1.2-11

true

EZ Templates

1.3.4

false

EnvInject API Plugin

1.7

true

Events API for Blue Ocean

1.24.8

true

External Monitor Job Type Plugin

1.7

true

Favorite

2.3.3

true

Font Awesome API Plugin

5.15.4-1

true

Git Parameter Plug-In

0.9.13

false

Git Pipeline for Blue Ocean

1.24.8

true

GitHub API Plugin

1.123

true

GitHub Branch Source Plugin

2.11.2

true

GitHub Pipeline for Blue Ocean

1.24.8

true

Green Balls

1.15.1

false

Handy Uri Templates 2.x API Plugin

2.1.8-1.0

true

Hudson Personal View

1.8

false

Hudson global-build-stats plugin

1.5

true

Infrastructure plugin for Publish Over X

0.22

true

JAXB plugin

2.3.0.1

true

JIRA Integration for Blue Ocean

1.24.8

true

JQuery3 API Plugin

3.6.0-2

true

JWT for Blue Ocean

1.24.8

true

Jackson 2 API Plugin

2.12.4

true

Java JSON Web Token (JJWT) Plugin

0.11.2-9.c8b45b8bb173

true

JavaScript GUI Lib: ACE Editor bundle plugin

1.1

true

JavaScript GUI Lib: Handlebars bundle plugin

3.0.8

true

JavaScript GUI Lib: Moment.js bundle plugin

1.1.1

true

JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin

1.2.1

true

Jenkins Apache HttpComponents Client 4.x API Plugin

4.5.13-1.0

true

Jenkins Design Language

1.24.8

true

Jenkins Extended Read Permission Plugin

3.2

false

Jenkins GIT server Plugin

1.10

true

Jenkins Git client plugin

3.9.0

true

Jenkins JSch dependency plugin

0.1.55.2

true

Jenkins Job Configuration History Plugin

2.28.1

true

Jenkins Libvirt Agents plugin

1.9.2

false

Jenkins Pipeline Remote Loader Plugin

1.5

false

Jenkins Platform Labeler Plugin

987.v674996136faf

false

Jenkins Priority Sorter Plugin

4.0.0

false

Jenkins Pub-Sub "light" Bus

1.16

true

Jenkins Slave SetupPlugin

1.10

false

JenkinsLint Plugin

0.14.0

false

Job Import Plugin

3.4

false

LDAP Plugin

2.7

true

Lenient shutdown plugin

1.1.1

false

Mail Watcher Plugin

1.16

false

MapDB API Plugin

1.0.9.0

true

Matrix Authorization Strategy Plugin

2.6.8

true

Matrix Project Plugin

1.19

true

Matrix Reloaded Plugin

1.1.3

false

Metrics Plugin

4.0.2.8

true

Monitoring

1.88.0

false

Next Build Number Plugin

1.6

false

OWASP Markup Formatter Plugin

2.1

true

OkHttp Plugin

3.14.9

true

Oracle Java SE Development Kit Installer Plugin

1.5

true

PAM Authentication plugin

1.6

true

Persistent Parameter Plugin

1.3

false

Personalization for Blue Ocean

1.24.8

true

Pipeline

2.6

true

Pipeline Graph Analysis Plugin

1.11

true

Pipeline SCM API for Blue Ocean

1.24.8

true

Pipeline implementation for Blue Ocean

1.24.8

true

Pipeline: API

2.46

true

Pipeline: Declarative Extension Points API

1.9.1

true

Pipeline: GitHub Groovy Libraries

1.0

false

Pipeline: Job

2.41

true

Pipeline: Model API

1.9.1

true

Pipeline: REST API Plugin

2.19

true

Pipeline: Stage Tags Metadata

1.9.1

true

Pipeline: Stage View Plugin

2.19

true

Pipeline: Step API

2.24

true

Pipeline: Supporting APIs

3.8

true

Plain Credentials Plugin

1.7

true

Plugin Usage - Plugin

1.2

false

Plugin Utilities API Plugin

2.4.0

true

Popper.js 2 API Plugin

2.9.3-1

true

Popper.js API Plugin

1.16.1-2

true

Prometheus metrics plugin

2.0.10

false

REST API for Blue Ocean

1.24.8

true

REST Implementation for Blue Ocean

1.24.8

true

Rebuilder

1.32

true

Resource Disposer Plugin

0.16

true

Role-based Authorization Strategy

3.2.0

true

Run Condition Plugin

1.5

true

SCM API Plugin

2.6.5

true

SSH Build Agents plugin

1.33.0

false

SSH Credentials Plugin

1.19

true

SSH server

3.1.0

true

Script Security Plugin

1.78

true

Server Sent Events (SSE) Gateway Plugin

1.24

true

Sidebar Link

1.12.0

false

Simple Queue Plugin

1.4.1

false

Snakeyaml API Plugin

1.29.1

true

Strict Crumb Issuer Plugin

2.1.0

false

Structs Plugin

1.23

true

Test Results Analyzer Plugin

0.3.5

false

ThinBackup

1.10

false

Trilead API Plugin

1.0.13

true

Variant Plugin

1.4

true

View Job Filters

2.3

true

WMI Windows Agents Plugin

1.8

true

Web for Blue Ocean

1.24.8

true

bouncycastle API Plugin

2.24

true

build-metrics

1.3

false

built-on-column

1.1

true

excludeMatrixParent

1.1

false

i18n for Blue Ocean

1.24.8

true

jQuery plugin

1.12.4-1

true

 

 

From: <daos@daos.groups.io> on behalf of "15735154041@..." <15735154041@...>
Reply-To: "daos@daos.groups.io" <daos@daos.groups.io>
Date: Monday 28 February 2022 at 06:32
To: "daos@daos.groups.io" <daos@daos.groups.io>
Subject: [daos] Jenkins test

 

Hello everyone:
    Recently, when I deployed the Jenkins test environment, a similar problem occurred after the task was executed: "no such DSL method 'valgrindreportpublish' found among steps". I look forward to providing a list of Jenkins test dependent plug-ins.
Best regards!

---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


dongfeier
 

Hello,
     Jenkins test uses the pipeline shared library. After the configuration is completed, there is the following exception "no such DSL method 'commitpragmatrusted' found among steps". Please let me know if you have any suggestions.
Thanks in advance


Murrell, Brian
 

On Mon, 2022-02-28 at 17:45 -0800, 15735154041@... wrote:
Hello,
Hi,

Jenkins test uses the pipeline shared library. After the
configuration is completed, there is the following exception "no such
DSL method 'commitpragmatrusted' found among steps". Please let me
know if you have any suggestions.
That is implemented in:
https://github.com/daos-stack/trusted-pipeline-lib/blob/master/vars/commitPragmaTrusted.groovy

which is supplied by the:

https://github.com/daos-stack/trusted-pipeline-lib

hared library. You need to apply that library as a trusted library to
your Jenkins configuration as instructed at:

https://www.jenkins.io/doc/book/pipeline/shared-libraries/#global-shared-libraries

Cheers,
b.


dongfeier
 

Hello,
     After the Jenkins environment configuration is completed, the test is carried out, and the following exceptions are found
     


Please let me know if you have any suggestions.
Thanks in advance


Murrell, Brian
 

On Wed, 2022-03-02 at 01:38 -0800, dongfeier wrote:
Hello,
After the Jenkins environment configuration is completed, the test is
carried out, and the following exceptions are found
Some function needs to be moved to the trusted library. There is not
enough information in your screenshot to know which function though.
For this reason copy and paste of text is preferred to screenshots as
it typically carries much more information, particularly in the case of
java stacktraces.

Cheers,
b.


dongfeier
 
Edited

Hello,
     
useradd: UID 0 is not unique
The command '/bin/sh -c useradd --no-log-init --uid $UID --user-group --create-home --shell /bin/bash             --home /home/daos daos_server' returned a non-zero code: 4

Jenkins not configured to notify users of failed builds.
Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.lang.Object java.lang.String. Administrators can decide whether to approve or reject this signature.
Error when executing unsuccessful post condition:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.lang.Object java.lang.String
	at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectStaticMethod(StaticWhitelist.java:279)
	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetArray(SandboxInterceptor.java:476)
	at org.kohsuke.groovy.sandbox.impl.Checker$11.call(Checker.java:484)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetArray(Checker.java:489)
	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getArray(SandboxInvoker.java:45)
	at com.cloudbees.groovy.cps.impl.ArrayAccessBlock.rawGet(ArrayAccessBlock.java:21)
	at notifyBrokenBranch.call(notifyBrokenBranch.groovy:37)
	at WorkflowScript.run(WorkflowScript:1049)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.delegateAndExecute(ModelInterpreter.groovy:137)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:761)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(ModelInterpreter.groovy:395)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(ModelInterpreter.groovy:393)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:760)
	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2030)
	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2015)
	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2056)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:750)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executePostBuild(ModelInterpreter.groovy:728)
	at ___cps.transform___(Native Method)
	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:74)
	at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66)
	at sun.reflect.GeneratedMethodAccessor430.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:402)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:314)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:278)
	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
I have found the cause of the problem because the uid is repeated when adding users. Thank you very much


Pittman, Ashley M
 

 

I suspect that this is because you haven’t configured Jenkins to use a build user and it’s building your code as root.  Our dockerfiles use the uid of the caller to own the files so that Jenkins can copy files in/out of the container, and we didn’t think about the case that docker would be run as root.  In theory we could probably workaround this in the dockerfiles but I recommend you look at your Jenkins config first.

 

Ashley.

 

From: daos@daos.groups.io <daos@daos.groups.io> on behalf of dongfeier <15735154041@...>
Date: Thursday, 3 March 2022 at 03:16
To: daos@daos.groups.io <daos@daos.groups.io>
Subject: Re: [daos] Jenkins test

[Edited Message Follows]

Hello,
     

useradd: UID 0 is not unique
The command '/bin/sh -c useradd --no-log-init --uid $UID --user-group --create-home --shell /bin/bash             --home /home/daos daos_server' returned a non-zero code: 4

 

Jenkins not configured to notify users of failed builds.
Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.lang.Object java.lang.String. Administrators can decide whether to approve or reject this signature.
Error when executing unsuccessful post condition:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.lang.Object java.lang.String
  at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectStaticMethod(StaticWhitelist.java:279)
  at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetArray(SandboxInterceptor.java:476)
  at org.kohsuke.groovy.sandbox.impl.Checker$11.call(Checker.java:484)
  at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetArray(Checker.java:489)
  at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getArray(SandboxInvoker.java:45)
  at com.cloudbees.groovy.cps.impl.ArrayAccessBlock.rawGet(ArrayAccessBlock.java:21)
  at notifyBrokenBranch.call(notifyBrokenBranch.groovy:37)
  at WorkflowScript.run(WorkflowScript:1049)
  at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.delegateAndExecute(ModelInterpreter.groovy:137)
  at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:761)
  at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(ModelInterpreter.groovy:395)
  at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(ModelInterpreter.groovy:393)
  at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:760)
  at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2030)
  at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2015)
  at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2056)
  at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:750)
  at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy)
  at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executePostBuild(ModelInterpreter.groovy:728)
  at ___cps.transform___(Native Method)
  at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:74)
  at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
  at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66)
  at sun.reflect.GeneratedMethodAccessor430.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
  at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
  at com.cloudbees.groovy.cps.Next.step(Next.java:83)
  at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
  at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
  at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
  at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
  at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
  at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
  at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
  at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
  at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:402)
  at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
  at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:314)
  at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:278)
  at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
  at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
  at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  at java.lang.Thread.run(Thread.java:748)
I have found the cause of the problem because the uid is repeated when adding users. Thank you very much


Murrell, Brian
 

On Wed, 2022-03-02 at 17:29 -0800, dongfeier wrote:
Scripts not permitted to use staticMethod
org.codehaus.groovy.runtime.DefaultGroovyMethods getAt
java.lang.Object java.lang.String.
Ultimately this means that some code in an untrusted shared library is
trying to access a non-whitelisted groovy function.

Administrators can decide whether to approve or reject this
signature. ( http://172.20.18.132:8080/scriptApproval )
You *could* do the above with the security implications it involves,
but the correct solution is to use whitelisted methods.

Error when executing unsuccessful post condition:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException:
Scripts not permitted to use staticMethod
org.codehaus.groovy.runtime.DefaultGroovyMethods getAt
java.lang.Object java.lang.String
This is the method that is not whitelisted.

        at
org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhiteli
st.rejectStaticMethod(StaticWhitelist.java:279)
        at
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxIntercepto
r.onGetArray(SandboxInterceptor.java:476)
        at
org.kohsuke.groovy.sandbox.impl.Checker$11.call(Checker.java:484)
        at
org.kohsuke.groovy.sandbox.impl.Checker.checkedGetArray(Checker.java:
489)
        at
com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getArray(SandboxInvok
er.java:45)
        at
com.cloudbees.groovy.cps.impl.ArrayAccessBlock.rawGet(ArrayAccessBloc
k.java:21)
        at notifyBrokenBranch.call(notifyBrokenBranch.groovy:37)
And this is where it's being called from. It's here:

https://github.com/daos-stack/pipeline-lib/blob/03a6dd8f16808094e2ba2971e839707cd690c0a5/vars/notifyBrokenBranch.groovy#L37

It's the use of env[] that is the problem. One solution here is to
move that function to the trusted library at:

https://github.com/daos-stack/trusted-pipeline-lib

But it seems a more correct solution is to replace the env[NAME]
accesses to env."NAME" such as this (completely untested) PR does:

https://github.com/daos-stack/pipeline-lib/pull/291

Cheers,
b.