Config File Provider Plugin & Credentials Plugin: Credential Replacement Not working
I have a few credentials defined and i want them replaced in the maven settings file (defined through the Config File Provider Plugin) - same server Id's I went through the documentation of Config File Provider Plugin and defined it as attached. But when i my free style job referring to this settings file, mvn does not download anything from the Maven Repository citing 'Unauthorized' .This makes me believe that the credentials are not being injected Is there a way to debug this ? My plugin versions below: config-file-provider 2.11 credentials-binding 1.8 credentials 2.1.4 Jenkins Version: 2.0 Regards, Z -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/17230e81-916c-44a8-a31a-a9dabaac4f29%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Accessing jenkins.model.Jenkins class from Custom Jars in Jenkins env.
Hello, I have written some custom groovy scripts (bundled as Jars) which need to access the class jenkins.model.Jenkins I have my custom JARS installed into Jenkins and they are loaded properly (verified through the Jenkins Script Console). However, When my script imports jenkins.model.Jenkins, it fails with a NoClassDef error. I can see the jenkins core jar in /var/jenkins_home/war/WEB-INF/lib but they do not seem to be visible to my scripts. I am guessing this is either a classloader or a security restriction. Any pointers to resolve this would be appreciated. Regards, Rahul -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/52c1baf1-e1fe-4583-ab6a-2a0307e9f37c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: commonLibFolder : Jenkins within docker
sorry for the delay, i got tied up with workarounds but this continues to be an issue. My goal is to load some custom jars into Jenkins so I am mounting this directory already. When i use docker-compose I have to do something like docker-compose run -d --commonLibFolder={libDirectoryLocation} << This works perfectly I looked into this a bit and jenkins sets this as sun.java.command, so in the jenkins system information page , i can see sun.java.command/usr/share/jenkins/jenkins.war --commonLibLocation={libDirectoryLocation} I am trying to find an alternate way to do this, so that i don't have to type in such a big command (one of the purposes of docker compose) I have tried a few things - Environment variables(sun.java.command) - This creates a second entry and does not work - JENKINS_OPTS , JENKINS_ARGS (i have used this approach outside docker to customize classpath) Nothing seems to work, i am sure i am am missing something but i can't figure out what.. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e4626f1e-048d-46aa-80cb-1f64740dadf8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: commonLibFolder : Jenkins within docker
sorry for the delay, i got tied up with workarounds but this continues to be an issue. My goal is to load some custom jars into Jenkins so I am mounting this directory already. When i use docker-compose I have to do something like docker-compose run -d --commonLibFolder={libDirectoryLocation} << This works perfectly I looked into this a bit and jenkins sets this as sun.java.command, so in the jenkins system information page , i can see sun.java.command/usr/share/jenkins/jenkins.war --commonLibLocation={libDirectoryLocation} I am trying to find an alternate way to do this, so that i don't have to type in such a big command (one of the purposes of docker compose) I have tried a few things - Environment variables(sun.java.command) - This creates a second entry and does not work - JENKINS_OPTS , JENKINS_ARGS (i have used this approach outside docker to customize classpath) Nothing seems to work, i am sure i am am missing something but i can't figure out what.. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6a9c7631-0edd-4e04-a959-d556e4871a44%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
commonLibFolder : Jenkins within docker
I am trying to enhance the Jenkins classpath with custom additional jars. While i am aware that we can include it through the additional classpath of groovy plugins . I am currently looking for a more generic option so i can run the jar code through jenkins scripting console (besides regular jobs) as well. In a non docker environment, augmenting JENKINS_ARGS="--commonLibFolder={filePath}" while starting jenkins works. However, when i give the following line in my dockerfile (extending jenkins docker image) *ENV JENKINS_ARGS --commonLibFolder={filePath}.* This doesn't work. When i try to load a class from the jar i get a failure saying the class cannot be resolved. Has anyone got this to work within docker? Or any other pointers to accomplish this? Thanks for your help ZT -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e2c7a120-b305-419f-8768-5cb6803b3899%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.