Re: Jenkinsfile Accessing variables from shared libraries

2020-12-16 Thread Adrian Wyssmann
I see several problem 1. using ' will not expand the parameters is your call should be sh "echo ${CustomMessage}" 2. CustomMessage is declared within the class Vars(), so you cannot access it You could implement a getter an then do something like this "echo ${globalVars.getCustomMe

Jenkinsfile: java.lang.NoSuchMethodError: No such DSL method 'agent' found among steps

2020-12-15 Thread Adrian Wyssmann
I have the following shared-library file *defaultCiPipelineGeneric.groovy* def call(body) { // evaluate the body block, and collect configuration into the object def pipelineParams= [:] body.resolveStrategy = Closure.DELEGATE_FIRST body.delegate = pipelineParams body() pip

Jenkinsfile: Build job does not pass parameters

2020-12-14 Thread Adrian Wyssmann
I have a shared library which reads parameters from the jenkinsfile so here is the important snippet of the shared library ( *defaultCiPipelineGeneric.groovy*) def call(body) { // evaluate the body block, and collect configuration into the object def pipelineParams= [:] body.resolveStr

Re: Jenkins unable to read config.xml: hudson.security.GlobalMatrixAuthorizationStrategy hudson.security.LDAPSecurityRealm

2020-12-07 Thread Adrian Wyssmann
...@cloudbees.com wrote: > You're using https://plugins.jenkins.io/role-strategy/ and that plugin is > not installed, disabled, or unloadable. Check the log to find out which, > then address the problem. > > On Mon, Dec 7, 2020 at 8:40 AM Adrian Wyssmann wrote: > >> Hi all >&

Jenkins unable to read config.xml: hudson.security.GlobalMatrixAuthorizationStrategy hudson.security.LDAPSecurityRealm

2020-12-06 Thread Adrian Wyssmann
Hi all Today we are suddenly facing issues with ldap plugin com.thoughtworks.xstream.mapper.CannotResolveClassException: com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79) at com.though

Use of "local" function in shared library

2020-09-09 Thread Adrian Wyssmann
I use a shared library for our projects to have a common ci pipeline. There are still some project specific stuff like the build script. So what I would like to do is defined some functions in the local project's Jenkinsfile and use them in the library So here is my Jenkinsfile library identifi

Fill custom field with jira-steps-plugin in jenkins fails with “Could not find valid 'id' or 'value' in the Parent Option object.”

2020-09-02 Thread Adrian Wyssmann
I configured a custom field pkg in Jira of type Select List (single choice) I would like to create an issue as follows using the jira-steps-plugin and filing the custom field with a given text, not the id of