Hello
Is there a way to access those variables from as sh command from the script
section?
for example this works:
script {
echo GlobalVariables.MyVariable
}
but the same with sh does not, that just echos GlobalVariables.MyVariable
and not the variab
Hello
Defining a global class worked for me, at least did what I wanted to do,
Thanks you very much for your time and support
Regards
El jueves, 17 de diciembre de 2020 a las 5:45:11 UTC-3, venh...@gmail.com
escribió:
> In my case, I do the following. I have a GlobalVars.groovy file with below
Hi,
We can read "doWriteObject(BlockMarshaller.java:65)"
We then can suppose plugins are not serializable object.
So, try to encapsulate your code in a groovy function, with the
annotation @NonCPS
On Sat, Dec 19, 2020 at 6:44 PM zil...@gmail.com wrote:
> I have the following line in my pipel
This works just as well (posted on a thread here), and no dumps.
def plugins = Jenkins.instance.pluginManager.plugins.*findAll* {
!(it.shortName in ['job-dsl', 'structs']) }.*collect* { "*${it.shortName}*:
*${it.version}*" }
On Saturday, December 19, 2020 at 12:43:47 PM UTC-5 zil...@gmail.com
I have the following line in my pipeline to get the currently installed
plugins.
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
and it dumps the following. Any ideas why? I can run the code in the
Scripts console.
an exception which occurred: in field
com.cloudbe