Skip a Jenkins job build in a pipeline

2019-07-02 Thread Vijay Gongle
I have a Jenkins pipeline which has 10 Jobs configured to run one after the other in the post build action. Anytime there's a change in Job's related git code, the build is triggered and all the following jobs run though rest of the Job code were not committed. For e.g, in a series of 10 jobs

Can I store Shell commands in Git for a Jenkins job and run that job which needs these scripts

2019-07-28 Thread Vijay Gongle
Hi, I have a Jenkins freestyle/Maven job which has a bunch of shell script in the post steps written. Can I store these scripts in the Git and use it when someone runs the proejct. Note: SCM is configured with its appropriate repo url where the actual code is pulled. And these shell scripts

Disable build buttons to everyone except some users

2019-07-28 Thread Vijay Gongle
Hi, Our Jenkins is set up in such a way that everyone has build access to all the jobs. How can I restrict the build access to everyone except few admin users so that not everyone has permissions to build the job. Thanks in advance. Vijay -- You received this message because you are subsc

Re: Enable "Post Build Action" in Jenkins

2019-09-17 Thread Vijay Gongle
Looks like this is a pipeline job and you wouldn’t have the post build action unlike a freestyle job. Thanks, Vijay > On Sep 17, 2019, at 7:00 PM, Binay Jena wrote: > > We're missing the "Post Build Actions" tab in Jenkins (attached screengrab > FYR). I've tried installing plugins for enab

Jenkins build status always shows success

2020-01-10 Thread Vijay Gongle
Hello, This is something weird I started seeing from past 2 days. No matter what or how many errors you have in console output, it shows the results as “success” and green and never marks the status “failed” at the end. This job has been working fine for months. I created a new job with simila

Re: Jenkins build status always shows success

2020-01-11 Thread Vijay Gongle
l of Jenkins build step or batch file? > i > > Rajendra Prasad Reddy Penumalli > > > >> On Sat, 11 Jan 2020 at 02:53, Vijay Gongle wrote: >> Hello, >> This is something weird I started seeing from past 2 days. No matter what or >> how many errors you

Re: Jenkins build status always shows success

2020-01-12 Thread Vijay Gongle
t line of your script? Can you each out the result of your angular > command? It might be pronting errors but exiting with a status of 0 which is > considered successful. > > > >> On Sat, Jan 11, 2020 at 04:59 Vijay Gongle wrote: >> Correct. It’s an Angular project an

Re: Jenkins build status always shows success

2020-01-13 Thread Vijay Gongle
s still shows success . > > > > Thanks, > > Vijay > > Sent from my iPhone > > > > On Jan 11, 2020, at 4:46 PM, Jan Monterrubio > wrote: > >  > > Does it mark unsuccessful if you have: > > exit 1 > > > > As the last line of your sc

How to get a list of jobs that are integrated with SonarQube

2020-05-23 Thread Vijay Gongle
We have plenty of Jenkins job and most of them are running with SonarQube for analysis. How to find out; how many such jobs are running with SonarQube ? Thanks Vijay -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from thi

Re: How to get a list of jobs that are integrated with SonarQube

2020-05-24 Thread Vijay Gongle
as a step > } > > > On Sat, May 23, 2020 at 8:43 PM Vijay Gongle wrote: > >> We have plenty of Jenkins job and most of them are running with SonarQube >> for analysis. >> >> How to find out; how many such jobs are running with SonarQube ? >> >> Th

How to get a list of jobs that are integrated with SonarQube

2020-05-25 Thread Vijay Gongle
gt;> it.configuration?.steps // not sure what XML type the sonar cube step is, if >> it has a step >> } >> >> >>> On Sat, May 23, 2020 at 8:43 PM Vijay Gongle wrote: >>> We have plenty of Jenkins job and most of them are running with SonarQube >

Re: How to get a list of jobs that are integrated with SonarQube

2020-05-26 Thread Vijay Gongle
hout the > scriptconsole (we also don't use sonar and i didn't have an instance > available on my personal machine) > > On Tue, May 26, 2020 at 6:31 AM 'Dirk Heinrichs' via Jenkins Users < > jenkinsci-users@googlegroups.com> wrote: > >> Am Samstag, den 2

Re: How to get a list of jobs that are integrated with SonarQube

2020-05-26 Thread Vijay Gongle
g type is doffeeent! > > On Tue, May 26, 2020 at 11:51 Vijay Gongle wrote: > >> Thank you Drik/Jan. >> I ran the above script and I get the below result with two of the job >> names which has SonarQube configurations. But I'm sure there are even more. >> &g

Re: How to get a list of jobs that are integrated with SonarQube

2020-05-26 Thread Vijay Gongle
Script Console and see how it works. We don't use > SonarCube ourselves, so it may work or not, but it should point you into the > right direction." > > > On Tue, May 26, 2020 at 12:44 PM Vijay Gongle wrote: > >> All the jobs has simila

Re: How to get a list of jobs that are integrated with SonarQube

2020-05-26 Thread Vijay Gongle
on/maven/MavenModuleSet.html#getBuildWrappersList-- > So you might have to check if the project responds to that method, and if > so, check if it has sonar. If not, print out the job name and lets check if > it has the same configuration object type: *maven2-moduleset* > > On Tue, May 26,

Re: How to get a list of jobs that are integrated with SonarQube

2020-05-27 Thread Vijay Gongle
it can be combined in the above > script? > > you can combine it: > > if (buildWrappersList() { // the logic for the build wrappers } > > if (publishersList() { // find sonar publisher } > > > On Tue, May 26, 2020 at 10:06 PM Vijay Gongle wrote: > >> Thanks a l

Re: How to get a list of jobs that are integrated with SonarQube

2020-05-28 Thread Vijay Gongle
Hi Jan/Dirk, Tweaking the script worked in charm. Below is the perfectly working script which gives me the results for any job that has sonarqube integrated or sonar quality gates integrated. It might help someone who is in similar boat. I thank a lot lot to you both for leading me in right direct

How to find who installed a Jenkins plugin

2020-06-04 Thread Vijay Gongle
Is there a way to find out who and when was the plugin installed ? Especially for all the plugins that are installed in jenkins. -- 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,

Re: How to find who installed a Jenkins plugin

2020-06-05 Thread Vijay Gongle
Any leads ? Thanks in advance. Sent from my iPhone > On Jun 4, 2020, at 5:00 PM, Vijay Gongle wrote: > > Is there a way to find out who and when was the plugin installed ? > Especially for all the plugins that are installed in jenkins. > > -- > You received thi

Re: How to get build ID effectively from remotely triggered builds.

2020-06-19 Thread Vijay Gongle
Hello, I’m trying to build a jenkins job which is in jenkins server B from jenkins server A. How is it possible? Sent from my iPhone > On Jun 9, 2020, at 7:36 AM, Yoo JinSun wrote: > >  > Hello Jenkins Community! > > Is there a way to reliably get the build number from a remotely trigge

Deleting Gitlab branches from mailto ole projects

2021-05-14 Thread Vijay Gongle
Hello, I have 100 Gitlab repositories and all of them have many branches, out of which most of them starts with “Sam”. Can I deleted all such branches at once residing in multiple projects. I would like to delete all the branches that starts with Sam* and older than 6 months from all the p