Git Additional Behaviors potential bug

2020-08-24 Thread John Patrick
Might be a question for developers or a bug ticket. I've got a multibranchPipelineJob project which runs a Jenkinsfile. The job executes as expected apart form one part. If I select "Configure remote name" and change it to "origin1". When I do "sh 'git remote -v'". I see as expected; [Pipeline

Re: Git Additional Behaviors potential bug

2020-08-25 Thread John Patrick
On Tue, 25 Aug 2020 at 00:56, Mark Waite wrote: > > > > On Mon, Aug 24, 2020 at 5:29 PM John Patrick wrote: >> >> Might be a question for developers or a bug ticket. >> >> I've got a multibranchPipelineJob project which runs a Jenkinsfile. The job &g

Re: Git Additional Behaviors potential bug

2020-08-25 Thread John Patrick
So adding sh 'printenv' I don't see any GIT_ environment variables and in the config.xml I've got it set as; aName aem...@example.tld Anything else I should check, or anything else I need to configure to get this working? John On Tue, 25 Aug 2020 at 10:43, John Patric

Re: Git Additional Behaviors potential bug

2020-08-25 Thread John Patrick
org/browse/JENKINS-46052 for a work around using a > shell command to define the user name and email address for the git committer. > > On Tue, Aug 25, 2020 at 4:22 PM John Patrick wrote: >> >> So adding sh 'printenv' I don't see any GIT_ environment variables and

Re: How to access jenkins using ip address remotely ?

2020-10-20 Thread John Patrick
>From the command line do; $ netstat -an | grep 8080 That will show you what ip address as listening on the port 8080, e.g. your jenkins instance. If it's only listening to local addresses then it will never work remotely. Don't have access to a jenkins at the moment, but within Jenkins configura

Re: How to access jenkins using ip address remotely ?

2020-10-20 Thread John Patrick
work, then you might need to change your router... you might need to setup dynamic ip routing or port forwarding so it is expired to your isp wan ip address. John On Tue, 20 Oct 2020 at 18:34, John Patrick wrote: > > From the command line do; > $ netstat -an | grep 8080 > > That will

Re: How to Hide findbug graphs

2021-02-09 Thread John Patrick
have you tried aggregatingResults something like; recordIssues enabledForFailure: true, aggregatingResults: true, tool: spotBugs() John On Tue, 9 Feb 2021 at 17:48, Ashok reddy wrote: > > multiple empty findbug trend graphs are creating How to hide them from > summery? > > > On Tuesday, Februa

Re: Best Practice- to deploy into windows machine from jenkins hosted on linux.

2021-02-18 Thread John Patrick
What about using Ansible WinRM? for more info https://docs.ansible.com/ansible/latest/user_guide/windows.html Then Jenkins running on Linux just needs ansible installed. John On Thu, 18 Feb 2021 at 14:40, jyothibasu kalyanapu wrote: > > Hi, > > if the case is jenkins hosted on linux machine & h

Re: mvn not found on $JENKINS_HOME/workspace/@tmp

2021-03-24 Thread John Patrick
Personally I would switch to using maven wrapper as it have saved me from a lot of issues like this. But to your errors; >From your first error, check if mvn is on the path, so I would expect to see "/opt/maven/bin" within the PATH assuming "/opt/maven" is where maven is installed. Doesn't matter

Re: Log4j CVE-2021-44228

2021-12-16 Thread John Patrick
I would exclude /opt/jenkins/.m2/repository from any scans, as already mentioned that is the local maven cache. Also if you don't maintain that, it will grow and grow. Personally I update build jobs so they each have their own maven cache using -Dmaven.repo.local=mvn-repo then delete that after you

Re: Why jenkins doesn't assign jobs to an agent with more resources

2022-03-30 Thread John Patrick
Hi, Some basic questions; - what Jenkins version? - has it ever work for you? - you mention 8-9 dockers per agent, is that being controlled using "Number of executors" being set for each agent? John On Sun, 27 Mar 2022 at 09:30, chencho m-a wrote: > Hi all, > > I have a cluster with 20 agents

Re: Jenkins - Mutlibranch pipeline

2022-04-14 Thread John Patrick
So I've changed mine to 7 days, which I've done using the groovy script that created/configures the pipeline. e.g. multibranchPipelineJob(...) { .. orphanedItemStrategy { discardOldItems { daysToKeep(7) // how long before dead branch build is deleted } } .. } I think the defa

Re: How to know when plugins were installed

2022-04-15 Thread John Patrick
>From the plugin ui, everything you can disable is usually a plugin you've installed yourself. A few plugins I've installed can't be disabled, usually where I installed a subsequent plugin that uses that previous plugin. The newer plugin ui is much easier to visualise that information. So Jenkins

Re: Alternative for Multiple SCM plugin

2022-04-18 Thread John Patrick
Hi, So using scripted Jenkinsfile. I've setup projects where it loads a file, and checks out those repositories dependencies, if they have a matching branch name then it builds them. The Jenkinsfile is used for "multibranchPipelineJob", then other jenkins jobs for develop and release use "pipelineJ

Re: checkout a GitHub PR banch on normal pipeline

2022-04-26 Thread John Patrick
To be clear, are you wanting; 1) github to trigger the job to run for that PR 2) jenkins job to detect PR and run job for that PR John On Tue, 26 Apr 2022 at 00:34, Dan Tran wrote: > Hi > > I have been searching for groovy solution to check out a GH PR to my > Jenkins workspace, so far none o

Re: checkout a GitHub PR banch on normal pipeline

2022-04-27 Thread John Patrick
So this might be useful to push back to the build status to the PR https://plugins.jenkins.io/pipeline-gitstatuswrapper/ But regarding checking out, I think the standard git checkout would work, but use the source branch url instead of the pr for that. So, something like; ``` git branch: XXX url:

Re: substituting different credentials() in a multibranch pipeline depending on branch

2022-11-28 Thread John Patrick
Due to similar issues, I changed how I was doing it from a single MultiBranch project. I've now separate projects for each environment, also use https://plugins.jenkins.io/cloudbees-folder to create prod and dev folders which container the environment specific values. Have a groovy script that crea

Re: Jenkins error when running the project on Mac but not on windows

2023-02-13 Thread John Patrick
Try installing gitbash on the windows machine, then in global configurations define where git is located. I've had similar, as it's trying to access /usr/bin/git which won't exist at that location on windows. On Mon, 13 Feb 2023 at 18:55, Andrei Suslov wrote: > I have two nodes: win and mac. On

Re: 'mvn' is not recognized as an internal or external command, operable program or batch file.

2023-09-15 Thread John Patrick
Common issues I have to fix for people include; Checking it's on the PATH, so for your example above it would be set PATH=%PATH%;$MAVEN_BIN% Checking it's executable Most of my projects have moved to Maven Wrapper, and developers forgot to check the exec bit is store in git, i.e. git update-inde

Re: id_rsa" is not a valid key file.

2023-10-10 Thread John Patrick
what about id_rsa.pub I've got; -rw---1 xx xx x id_rsa -rw-r--r--1 xx xxxxx x id_rsa.pub have you tried doing ssh without gerrit, to see if ssh or the gerrit config/setup. On Wed, 11 Oct 2023 at 05:40, praveen@gmail.com < praveen.mulim.