Re: Files sourced on pipeline shell step

2020-06-16 Thread 'Kamil Dzierżanowski' via Jenkins Users
e 15, 2020 at 9:18:58 PM UTC+2, Martin Baillie wrote: > > I'm experiencing a similar issue, did you find a solution? > > On Wednesday, 9 January 2019 09:19:25 UTC, Kamil Dzierżanowski wrote: >> >> Hello, >> >> I'm trying to determine, which (if any) file

Anonymous access to plugin resources (SimplePageDecorator)

2019-05-02 Thread Kamil Dzierżanowski
Hi! I've been experimenting with a recent extension point, the SimplePageDecorator. I'd like to have an image stored within the plugin, which would be loaded and displayed on the login page. However, right now any attempt to retrieve such resource results in a redirect to the login page, meani

Custom state elements in the Jenkins singleton

2019-02-27 Thread Kamil Dzierżanowski
In the init scripts, I'm using Grape to get com.bettercloud:vault-java-driver:4.0.0 . It is then used by creating an instance of the Vault client, such as: def vaultConfig = new VaultConfig() .address(vaultUrl) .token(vaultToken) .sslConfi

Files sourced on pipeline shell step

2019-01-09 Thread Kamil Dzierżanowski
Hello, I'm trying to determine, which (if any) files are sourced by the shell, in which commands specified in "sh" pipeline step are executed. I need to make sure the NVM (Node Version Manager) is sourced everytime this step is used. I tried numerous dot-files for the user the Jenkins agent is u

Re: 'Messages' class in getter methods of Descriptors - where are they defined

2018-11-15 Thread Kamil Dzierżanowski
ionalization/i18n-source-code/ > and > *https://wiki.jenkins.io/display/JENKINS/Internationalization#Internationalization-GenerationofMessagesclasses > > <https://wiki.jenkins.io/display/JENKINS/Internationalization#Internationalization-GenerationofMessagesclasses>.* > > >

'Messages' class in getter methods of Descriptors - where are they defined

2018-11-15 Thread Kamil Dzierżanowski
Hi! In most of the plugins' source code, I can find a 'Messages' class used in the getters of the Descriptor. This class is not present in the source, and is not pulled automatically as a dependency, so the plugins won't compile. I am probably missing some background on plugin development here,

Re: Maven global configuration via Groovy init script

2018-11-15 Thread Kamil Dzierżanowski
Thanks for inspiration, Victor! For the record, I was mentioning a part of "Configure Jenkins" page, which turns out to probably be a part of maven-plugin. Currently it's located right above the master node config (# of executors, etc.) The YAML config for CasC should look similar to this: #

Maven global configuration via Groovy init script

2018-11-09 Thread Kamil Dzierżanowski
Greetings! I am working to migrate an entire Jenkins configuration to code, so it is dynamically reproducible. I haven't had problems with core config and plugins so far, but I cannot find any classes or methods that would allow me to configure the "Maven Project Configuration" section in code.