Jenkins Groovy - Trying to load a JDBC driver

2020-08-18 Thread Randall Becker
Can someone throw some light on this, please? I am trying to load a JDBC type 4 driver from the local system (no agents involved) in order to update a database during deployment. The classLoader.rootLoader is null in the Jenkins groovy container, so I'm not sure how to accomplish this. The pipe

Re: Trying to use Global Shared Groovy in Pipelines - ERROR: Could not find any definition of libraries [mylib]

2020-08-18 Thread Randall Becker
; annotation as a workaround for now. > > > On Aug 17, 2020, at 17:01, Randall Becker > > wrote: > > I'm having some difficulty with global shared groovy libraries in > pipelines (Jenkins 2.242, with Pipeline:Groovy Shared Libraries 2.16) and > could use a swif

Trying to use Global Shared Groovy in Pipelines - ERROR: Could not find any definition of libraries [mylib]

2020-08-17 Thread Randall Becker
I'm having some difficulty with global shared groovy libraries in pipelines (Jenkins 2.242, with Pipeline:Groovy Shared Libraries 2.16) and could use a swift kick in the proper direction. I've configured a local bare git repository using it's path in the System Configuration, which correctly re

Re: Using git describe in Jenkins differs from regular clones

2020-08-03 Thread Randall Becker
OK: Blame the operator. shallow: true made the difference. It was shallow: false before. So that makes the difference. I'm now getting the desired results inside Jenkins. Randall On Monday, 3 August 2020 17:13:00 UTC-4, Randall Becker wrote: > > I know I should know the answer to th

Using git describe in Jenkins differs from regular clones

2020-08-03 Thread Randall Becker
I know I should know the answer to this one, but it's eluding me. When I run git describe from within a Jenkins pipeline, I am getting different results from when git describe is run from a normal clone/checkout. This happens even if I move to a detached head state. Obviously I'm missing an opt

Re: Jenkins hang on startup after "Listed all plugins"

2020-07-30 Thread Randall Becker
exception (and one with the URL involved, which Jenkins plugins are notorious for not reporting). Cheers, Randall On Tuesday, 28 July 2020 10:05:16 UTC-4, Randall Becker wrote: > > This has been going on since 2.233. We are getting pretty consistent > failures of Jenkins right

Jenkins hang on startup after "Listed all plugins"

2020-07-28 Thread Randall Becker
This has been going on since 2.233. We are getting pretty consistent failures of Jenkins right after the "Listed all plugins" message is logged. This just on the controller (there are no agents), running JRE 1.8.0_45. I have wiped the configuration three times already. As soon as I add pipeline

Re: SSH Agent, z/OS USS, and git authentication problems

2020-07-20 Thread Randall Becker
Turns out, you cannot use a key-pair with a passphrase in this situation. SSH key-pairs without a passphrase works correctly (but passphrases are mandatory in our shop). On Monday, 20 July 2020 14:14:47 UTC-4, Randall Becker wrote: > > I'm going to have to dig deeper and probabl

Re: SSH Agent, z/OS USS, and git authentication problems

2020-07-20 Thread Randall Becker
ople that said it works. > > You're welcome to suggest improvements in that area with the understanding > that I can only evaluate that code by inspection, not by execution. > > Mark Waite > > On Thu, Jul 16, 2020 at 7:49 AM Randall Becker > wrote: > >> That

Re: SSH Agent, z/OS USS, and git authentication problems

2020-07-19 Thread Randall Becker
th the understanding > that I can only evaluate that code by inspection, not by execution. > > Mark Waite > > On Thu, Jul 16, 2020 at 7:49 AM Randall Becker > wrote: > >> That's what we were trying to do originally. There is a problem. When >> GitSCM creates

Re: SSH Agent, z/OS USS, and git authentication problems

2020-07-16 Thread Randall Becker
nt? > > On Mon, Jul 13, 2020 at 8:45 AM Randall Becker > wrote: > >> I wish it was that simple. The issue definitely appears to be the >> encoding of the private key during a key exchange. When using SSH-Agent and >> git commands from within a shell in the pipeline,

Re: SSH Agent, z/OS USS, and git authentication problems

2020-07-13 Thread Randall Becker
11 de julio de 2020, 22:25:08 (UTC+2), Randall Becker escribió: >> >> I'm having issues trying to get an agent to authenticate using the SSH >> Agent plugin on a R2.4 z/OS USS agent with a Docker Jenkins controller. The >> goal is to convince GitSCM to actually f

SSH Agent, z/OS USS, and git authentication problems

2020-07-11 Thread Randall Becker
I'm having issues trying to get an agent to authenticate using the SSH Agent plugin on a R2.4 z/OS USS agent with a Docker Jenkins controller. The goal is to convince GitSCM to actually fetch properly. We get SSH authentication errors no matter what happens. This is using Pipelines. I've tried

Re: Potential Malware

2020-07-01 Thread Randall Becker
have gotten an email notification from Jira about >> it. Please provide more information there to help us investigate. >> >> >> > On 22. Jun 2020, at 19:15, Randall Becker wrote: >> > >> > Hi All, >> > >> > We just installed J

How can pipelines unset environment variables

2020-06-24 Thread Randall Becker
I have a situation where I need to run a pipeline with a reduced set of environment variables. The build environment has a limit of the total size of the environment and Jenkin's contribution is causing an overflow to that limit. Is there a way to unset variable in pipelines as could be done in

Potential Malware

2020-06-22 Thread Randall Becker
Hi All, We just installed Jenkins 2.240 and suddenly there is a job with some really strange content, including: #!/bin/bash threadCount=$(lscpu | grep 'CPU(s)' | grep -v ',' | awk '{print $2}' | head -n 1); hostHash=$(hostname -f | md5sum | cut -c1-8); echo "${hostHash} - ${threadCount}"; ktr

Re: Jenkins 2.164 Prompting Terminal for Passphrase

2019-04-24 Thread Randall Becker
java -jar jenkins.war doesn't cut it. :( On Wednesday, April 24, 2019 at 3:14:49 PM UTC-4, Randall Becker wrote: > > I'm rebuilding both docker and standalone images and will compare. The > docker image is fine with the key pair after I restarted it. I also had to > pick o

Re: Jenkins 2.164 Prompting Terminal for Passphrase

2019-04-24 Thread Randall Becker
Jenkins > reporting any issue with the private key format? > > On Wed, Apr 24, 2019 at 12:53 PM Randall Becker > wrote: > >> I went back to try to use 2.164 on Docker and am experiencing similar >> issues. I wonder whether this update is DOA. >> >> On Wednes

Re: Jenkins 2.164 Prompting Terminal for Passphrase

2019-04-24 Thread Randall Becker
I went back to try to use 2.164 on Docker and am experiencing similar issues. I wonder whether this update is DOA. On Wednesday, April 24, 2019 at 2:45:16 PM UTC-4, Mark Waite wrote: > > > > On Wed, Apr 24, 2019 at 12:35 PM Randall Becker > wrote: > >> I should qualify.

Re: Jenkins 2.164 Prompting Terminal for Passphrase

2019-04-24 Thread Randall Becker
I should qualify... the passphrase prompt disappeared when setsid is used, but that still does not allow a passphrase-less keypair. On Wednesday, April 24, 2019 at 2:33:07 PM UTC-4, Randall Becker wrote: > > The Multibranch Pipeline Plugin using JGit ends up incompatible. > > >

Re: Jenkins 2.164 Prompting Terminal for Passphrase

2019-04-24 Thread Randall Becker
r polling. I'm on Git Plugin 3.9.3. setsid made no difference. On Wednesday, April 24, 2019 at 2:24:00 PM UTC-4, Mark Waite wrote: > > > > On Wed, Apr 24, 2019 at 12:10 PM Randall Becker wrote: > >> I'll bite. How can I use JGit instead of git in Jenkins? I thoug

Re: Jenkins 2.164 Prompting Terminal for Passphrase

2019-04-24 Thread Randall Becker
I'll bite. How can I use JGit instead of git in Jenkins? I thought it was hard-burnt into the Git Plugin. On Wednesday, April 24, 2019 at 1:08:48 PM UTC-4, Randall Becker wrote: > > This is a new situation that I have encountered after a clean install of > 2.164. Attempting

Re: Jenkins 2.164 Prompting Terminal for Passphrase

2019-04-24 Thread Randall Becker
d not be attached to a terminal, but is. The define seems to have no effect. There are no SSH variables in the environment. And, most importantly, I cannot use a passphrase-less keypair to talk to bitbucket.org without being fired. Did I miss something? On Wednesday, April 24, 2019 at 1:08:48 PM

Jenkins 2.164 Prompting Terminal for Passphrase

2019-04-24 Thread Randall Becker
This is a new situation that I have encountered after a clean install of 2.164. Attempting to use an SSH keypair (with passphrase) to talk to BitBucket.org, in a Multibranch Pipeline job. The key is properly configured as an Private Key (entered manually) with a Passphrase. When I hit Scan Mult

Re: Trying to install 2.164 on Ubuntu - Failing

2019-04-24 Thread Randall Becker
Solved my own problem. Rebooted. Looks like the initial run of Jenkins cannot do Multibranch Pipelines, but after a restart, thinks become sane. On Wednesday, April 24, 2019 at 9:53:00 AM UTC-4, Randall Becker wrote: > > I'm getting the following messages immediately after install.

Trying to install 2.164 on Ubuntu - Failing

2019-04-24 Thread Randall Becker
I'm getting the following messages immediately after install. Apr 24, 2019 1:48:06 PM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error INFO: Failed to instantiate optional component com.cloudbees.hudson.plugins.folder.properties.FolderCredentialsProvider$FolderCredentialsProperty$De

Re: Error after update jenkins version

2019-04-24 Thread Randall Becker
After upgrading to 2.174, my Jenkins docker image became corrupted and my standalone Jenkins configuration in Ubuntu 16.04 does not even bring up the configuration page for Multibranch Pipelines. I am suspecting a jar file in the distribution is corrupt but cannot prove it. I think the release m

Resurrecting a Backup to SCM structure - with Jenkinsfile and Agents

2018-12-25 Thread Randall Becker
Hi All, Following best practices, we moved our entire build structure to a per-project Jenkinsfile and agents where the various parts of builds happen. The Jenkinsfiles are stored in the git repositories involved and we are using multi-branch projects. All that is working file. Our issue is th

Re: Setting the underlying platform job priority while running on Linux

2018-12-05 Thread Randall Becker
FWIW, I add the following Prefix under Advanced in the node definition: nice nice sh -c ' and ' as a suffix. That seemed to do the trick and slow down the whining. On Wednesday, December 5, 2018 at 9:40:53 AM UTC-5, Randall Becker wrote: > > I have a situation where the JVM runn

Re: Standard way to configure Linux Slave

2018-12-05 Thread Randall Becker
Launching agents via SSH is a reasonable approach also for normalizing configuration of agents across multiple platforms. My company's build environment uses multiple Linux flavours, a Windows client (configured using OpenSSH), and a NonStop - all as agents, with a Controller running under Ubun

Setting the underlying platform job priority while running on Linux

2018-12-05 Thread Randall Becker
I have a situation where the JVM running remoting.jar needs to run at a lower system priority than the default for the user. Basically, in Linux terms, I would like to run the equivalent of 'nice' as part of either the job or preferably the Node's agent startup. I cannot allocate a dedicated ma

Re: Multibranch Pipeline Scan Hangs

2018-11-21 Thread Randall Becker
18 at 11:20:56 AM UTC-5, Randall Becker wrote: > > The answer to that is no. SSH only. I rebuilt the docker image badly (last > time I listen to the Internet on this one) - so I'm starting from scratch. > > On Thursday, November 15, 2018 at 10:10:45 PM UTC-5, Mark Wait

Re: Multibranch Pipeline Scan Hangs

2018-11-21 Thread Randall Becker
me and password over > https? If so, does that behave any better in your environment? > > Mark Waite > > On Thu, Nov 15, 2018 at 7:28 PM Randall Becker > wrote: > >> I have 2 idle executors on every node, so that's not it. The hang is >> definitely waiting

Re: Multibranch Pipeline Scan Hangs

2018-11-15 Thread Randall Becker
I have 2 idle executors on every node, so that's not it. The hang is definitely waiting on a response from git fetch or git ls-remote depending on the situation. Version of git on the Ubuntu VM is 2.13, so that's not particularly recent, but sufficient for the function being executed. I cannot

Re: Multibranch Pipeline Scan Hangs

2018-11-15 Thread Randall Becker
capabilities >> because it is aware of Bitbucket, rather than being limited to those >> components which are generic git operations. >> >> Is there a reason you're not using the Bitbucket Branch Source plugin, >> rather than using the Git branch source? >>

Re: Multibranch Pipeline Scan Hangs

2018-11-15 Thread Randall Becker
Where can I raise a defect? On Thursday, November 15, 2018 at 1:43:02 PM UTC-5, Randall Becker wrote: > > Hi Mark, > > Yes, using a private key. This is a bitbucket.org site, which by my own > company's policy prevents me from using a passphrase-less credential. The > sam

Re: Multibranch Pipeline Scan Hangs

2018-11-15 Thread Randall Becker
a simple Pipeline job rather than a multibranch Pipeline. > > Does the same behavior happen if you use a private key which does not have > a passphrase? > > Does the same behavior happen if you use a multibranch Pipeline job rather > than a simple Pipeline job? > > Mar

Re: Multibranch Pipeline Scan Hangs

2018-11-15 Thread Randall Becker
your command line > > System.getProperty(org.jenkinsci.plugins.gitclient.Git.class.getName() + > ".timeOut") > > If you have tons of tags on your repos try to not discover tags. > > El jueves, 15 de noviembre de 2018, 16:51:53 (UTC+1), Randall Becker > escrib

Re: Multibranch Pipeline Scan Hangs

2018-11-15 Thread Randall Becker
ormance issues on Jenkins. > > ``` > > java.lang.InterruptedException > at java.lang.Object.wait(Native Method) > at java.lang.Object.wait(Object.java:502) > at java.lang.UNIXProcess.waitFor(UNIXProcess.java:395) > > ``` > > El jueves, 15 de noviembre de 2018, 16:51:53 (UTC+1), Randall B

Multibranch Pipeline Scan Hangs

2018-11-15 Thread Randall Becker
Hi All, I am trying to move over to Pipelines from Freestyle and am experiencing a hang during the initial scan for branches at ls-remote in the Multibranch Pipeline Scan. A few symptoms: 1. When using a freestyle project, with the same credentials and URL, there is no issue. 2. When

Alternate Plugin Update Sites

2018-11-06 Thread Randall Becker
Hi All, Question for the group. I have a *private* Jenkins plugin, that I use internally and really would be of no interest to the community as a whole. I would, however, like to be able to deploy updates to Jenkins easily, but do not want to add the plugin to the common plugin site. Are there

Re: Agent on Tandem/NonStop: sh pipeline command yields nohup error, while plain shell script build step works

2018-09-25 Thread Randall Becker
nal, redirect it to standard output. > To save output to FILE, use 'nohup COMMAND > FILE'. > > NOTE: your shell may have its own version of nohup, which usually supersedes > the version described here. Please refer to your shell's documentation > for details about the

Re: Agent on Tandem/NonStop: sh pipeline command yields nohup error, while plain shell script build step works

2018-09-25 Thread Randall Becker
On Tuesday, September 25, 2018 at 1:37:54 PM UTC-4, Devin Nusbaum wrote: > > The `sh` step in a Jenkins Pipeline uses `nohup` to launch the script on > the agent in such a way that Jenkins can restart while the `sh` step is > running without interrupting the script’s execution. > > Is the `nohup

Re: Error: Invalid or corrupt jarfile jenkins.war

2018-08-17 Thread Randall Becker
Sorry, should have read: 2.138 not 2.238. On Friday, August 17, 2018 at 9:31:44 AM UTC-4, Randall Becker wrote: > > Hi Gustavo, > > I managed to get Jenkins 2.238 to run under NSSJava 1.8_80 using the > following command: > > java -cp ./jenkins.war Main > > This

Re: Error: Invalid or corrupt jarfile jenkins.war

2018-08-17 Thread Randall Becker
Hi Gustavo, I managed to get Jenkins 2.238 to run under NSSJava 1.8_80 using the following command: java -cp ./jenkins.war Main This seems to bypass some limit restriction in the platform JVM. Cheers, Randall On Wednesday, July 25, 2018 at 8:04:04 AM UTC-4, Gustavo Martinez wrote: > > > H