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 projects/repositories at single shot. 

How can we achieve it. 

Thank you in advance!


Thank you,
Vijay 

-- 
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/F5FF637B-A430-4384-9110-A81016C73524%40gmail.com.


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 triggered 
> build? 
> 
> Here's the process I use to remotely trigger a build
> 1) POST a http request to trigger a build
>  POST   https://{hostname}/job/{job_name}/build
> 
> 2) From the response's Location header, get the queue number of the build
> Location: https://{hostname}/queue/item/673730/
> 
> 3) Repeatedly send GET request to the queue 
> GET https://{hostname}/queue/item/673730/api/json?pretty=true
> 
> 4) Get the build number
> Response body:
> {
>  ...
>  "id": 67370,
>   "executable": {
> "number": 18073,
> "url": "https://{hostname}/job/{job_name}/18073/";
>   }
> }
> 
> 
> 5) Use the build number to get the current status, console output, etc. 
> GET 
> https://{hostname}/job/{job_name}/18073/consoleLogFull/api/json?pretty=true
> 
> 
> Question is, is there a way for me to go from 1) to 3)? Or, another way to 
> remotely build a Jenkins Job to 4) directly?
> I'm seeing inefficiencies in having to continuously send a GET request at 2). 
> Also, if the queue number becomes invalid (which happens a short while after 
> build runs), then there's no way to get the build number. 
> I CANNOT use the 'latest build' option, since multiple job trigger may occur 
> at once. 
> 
> At least from the UI it seems that a job is given a build number as soon as 
> it is triggered(through the UI)
> 
> Many suggestions appreciated, thx.
> -- 
> 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/a36d4800-69f6-4d8c-8ffa-66b6ce40318bo%40googlegroups.com.

-- 
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/DB01A473-D0F3-4399-8FD9-A8DA25379911%40gmail.com.


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 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/84435610-a75a-416f-ab2a-568c92baff88o%40googlegroups.com.

-- 
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/72DBFFA5-49AF-42C7-8D7D-CAD6F42CB900%40gmail.com.


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, 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/84435610-a75a-416f-ab2a-568c92baff88o%40googlegroups.com.


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 direction which helped  in in achieving this.

import hudson.model.*
import hudson.plugins.sonar.*
import jenkins.model.*

// Iterate over all jobs
Jenkins.instance.getAllItems(AbstractProject.class).each {job ->
  def fName = job.getFullName()

  // Iterate over all build wrappers
  if(job.respondsTo('getBuildWrappersList')) {
  for (wrapper in job.getBuildWrappersList()) {
  if (wrapper instanceof SonarBuildWrapper) {
  println(fName + ' has SonarQube configuration.')
  }
  }
  }
  if(job.respondsTo('getPublishersList')) {
  for (String str : job.getPublishersList()) {
//def str = wrapper
if(str.contains("org.quality.gates.jenkins.plugin.QGPublisher")){
  println(fName + ' has Quality Gate plugin')
  }
  }
  }
}
println('Done.')

Thanks,
Vijay

On Thu, May 28, 2020 at 1:35 AM 'Dirk Heinrichs' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Am Mittwoch, den 27.05.2020, 21:33 -0500 schrieb Jan Monterrubio:
>
> Try printing like this:
>
> println(“${job.getFullName()} has soñar configuration”)
>
>
> The script already has a line for this.
>
> Bye...
>
> Dirk
>
> --
>
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenText ™ Discovery | Recommind
> *Phone*: +49 2226 15966 18
> *Email*: dhein...@opentext.com
> *Website*: www.recommind.de
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan,
> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail sind nicht gestattet.
>
> --
> 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/32fc3047756383f007e116e41011f3fe021eda88.camel%40opentext.com
> 
> .
>

-- 
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/CAMrMyDna-bhhN%2Br6wYtGWFfPGNDxfwJRKrv72s9GNtgRsidhfg%40mail.gmail.com.


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

2020-05-27 Thread Vijay Gongle
Hi Jan/Dirk,
I used the below script and I'm getting all the plugins list that jobs are
using but not the actual job name. Can you please help me how to tweak it.

When I run the below script I get the results which shows "
org.quality.gates.jenkins.plugin.QGPublisher@75f89c52" along with other
such plugin details. But I would like to see which job is using this
quality gate plugin.

import hudson.model.*
import hudson.plugins.sonar.*
import jenkins.model.*

// Iterate over all jobs
Jenkins.instance.getAllItems(AbstractProject.class).each {job ->
  def fName = job.getFullName()

  // Iterate over all build wrappers
  if(job.respondsTo('getBuildWrappersList')) {
  for (wrapper in job.getBuildWrappersList()) {
  if (wrapper instanceof SonarBuildWrapper) {
  println(fName + ' has SonarQube configuration.')
  }
  }
  }
  //if(job.respondsTo('getPublishersList')) {
  for (wrapper in job.getPublishersList()) {
  //if (wrapper instanceof SonarPublisher) {
  println(wrapper)
  //}
  //}
  }
}
println('Done.')

Thanks,
Vijay

On Wed, May 27, 2020 at 12:15 AM Jan Monterrubio 
wrote:

> >   Do I have to run it separately or 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 lot Jan and Dirk. The below script worked for about 50%. Looking
>> at the results, found that there are missing parts.
>> import hudson.model.*
>> import hudson.plugins.sonar.*
>> import jenkins.model.*
>>
>> // Iterate over all jobs
>> Jenkins.instance.getAllItems(AbstractProject.class).each {job ->
>>   def fName = job.getFullName()
>>
>>   // Iterate over all build wrappers
>>   if(job.respondsTo('getBuildWrappersList')) {
>>   for (wrapper in job.getBuildWrappersList()) {
>>   if (wrapper instanceof SonarBuildWrapper) {
>>   println(fName + ' has SonarQube configuration.')
>>   }
>>   }
>>   }
>>   else{
>> println(fName + ' has some issues.')
>>   }
>> }
>> println('Done.')
>>
>> I don't see anything that has sonar quality gate. Do I have to run it
>> separately or it can be combined in the above script?
>> Below is the config xml. What needs to be replaced with, to get the
>> results which has Sonar quality gates as well in the jobs?
>>
>> 
>> 
>> portal
>> Sonar
>> FAILED
>> 
>> 
>> 
>> 
>> 
>> false
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> false
>> 
>>
>> Thanks,
>>
>> On Tue, May 26, 2020 at 2:17 PM Jan Monterrubio 
>> wrote:
>>
>>> It seems that we do something like this to check if its gonna respond to
>>> that method:
>>>
>>> if(project.respondsTo('getBuildWrappersList')) { // do other things
>>> here } MavenModuleSet doesn't have a buildWrappersList:
>>> https://javadoc.jenkins.io/plugin/maven-plugin/hudson/maven/MavenModule.html
>>> MavenModuleSet on the other hand, does:
>>> https://javadoc.jenkins.io/plugin/maven-plugin/hudson/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, 2020 at 12:56 PM Vijay Gongle 
>>> wrote:
>>>
>>>> Ya sure, I haven't tweaked it honestly as I'm not aware of Groovy. So I
>>>> have pasted the below script provided by Drik.
>>>>
>>>> import hudson.model.*
>>>> import hudson.plugins.sonar.*
>>>> import jenkins.model.*
>>>>
>>>> // Iterate over all jobs
>>>> Jenkins.instance.getAllItems(AbstractProject.class).each {job ->
>>>>   def fName = job.getFullName()
>>>>
>>>>   // Iterate over all build wrappers
>>>>   for (wrapper in job.getBuildWrappersList()) {
>>>>   if (wrapper instanceof SonarBuildWrapper) {
>>>>   println(fName + ' has SonarQube configuration.')
>>>>   }
>>>>   }
>>>> }
>>>> println('Done.')
>>>>
>>>>
>>>> Thanks
>>>>
>>>> On Tue, May 26, 2020 at 1:52 PM Jan Mon

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

2020-05-26 Thread Vijay Gongle
Thanks a lot Jan and Dirk. The below script worked for about 50%. Looking
at the results, found that there are missing parts.
import hudson.model.*
import hudson.plugins.sonar.*
import jenkins.model.*

// Iterate over all jobs
Jenkins.instance.getAllItems(AbstractProject.class).each {job ->
  def fName = job.getFullName()

  // Iterate over all build wrappers
  if(job.respondsTo('getBuildWrappersList')) {
  for (wrapper in job.getBuildWrappersList()) {
  if (wrapper instanceof SonarBuildWrapper) {
  println(fName + ' has SonarQube configuration.')
  }
  }
  }
  else{
println(fName + ' has some issues.')
  }
}
println('Done.')

I don't see anything that has sonar quality gate. Do I have to run it
separately or it can be combined in the above script?
Below is the config xml. What needs to be replaced with, to get the results
which has Sonar quality gates as well in the jobs?



portal
Sonar
FAILED





false













false


Thanks,

On Tue, May 26, 2020 at 2:17 PM Jan Monterrubio 
wrote:

> It seems that we do something like this to check if its gonna respond to
> that method:
>
> if(project.respondsTo('getBuildWrappersList')) { // do other things here
> } MavenModuleSet doesn't have a buildWrappersList:
> https://javadoc.jenkins.io/plugin/maven-plugin/hudson/maven/MavenModule.html
> MavenModuleSet on the other hand, does:
> https://javadoc.jenkins.io/plugin/maven-plugin/hudson/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, 2020 at 12:56 PM Vijay Gongle  wrote:
>
>> Ya sure, I haven't tweaked it honestly as I'm not aware of Groovy. So I
>> have pasted the below script provided by Drik.
>>
>> import hudson.model.*
>> import hudson.plugins.sonar.*
>> import jenkins.model.*
>>
>> // Iterate over all jobs
>> Jenkins.instance.getAllItems(AbstractProject.class).each {job ->
>>   def fName = job.getFullName()
>>
>>   // Iterate over all build wrappers
>>   for (wrapper in job.getBuildWrappersList()) {
>>   if (wrapper instanceof SonarBuildWrapper) {
>>   println(fName + ' has SonarQube configuration.')
>>   }
>>   }
>> }
>> println('Done.')
>>
>>
>> Thanks
>>
>> On Tue, May 26, 2020 at 1:52 PM Jan Monterrubio 
>> wrote:
>>
>>> at Script1.run(Script1.groovy:6)
>>>
>>> do you mind copy pasting your script here so we can check it out (with 
>>> whatever modifications you have).
>>>
>>> Based on what Dirk said, you might have to tweak it:
>>>
>>> "Paste it into the 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 similar configurations for SonarQube as posted in the
>>>> above config.xml
>>>> It throws the below error:
>>>>
>>>> groovy.lang.MissingMethodException: No signature of method: 
>>>> hudson.maven.MavenModule.getBuildWrappersList() is applicable for argument 
>>>> types: () values: []
>>>>at 
>>>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
>>>>at 
>>>> org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49)
>>>>at 
>>>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>>>>at 
>>>> hudson.model.BuildableItemWithBuildWrappers$getBuildWrappersList.call(Unknown
>>>>  Source)
>>>>at Script1$_run_closure1.doCall(Script1.groovy:10)
>>>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>at java.lang.reflect.Method.invoke(Method.java:498)
>>>>at 
>>>> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
>>>>at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
>>>>at 
>>>> org.codehaus.groovy.runtime.met

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

2020-05-26 Thread Vijay Gongle
Ya sure, I haven't tweaked it honestly as I'm not aware of Groovy. So I
have pasted the below script provided by Drik.

import hudson.model.*
import hudson.plugins.sonar.*
import jenkins.model.*

// Iterate over all jobs
Jenkins.instance.getAllItems(AbstractProject.class).each {job ->
  def fName = job.getFullName()

  // Iterate over all build wrappers
  for (wrapper in job.getBuildWrappersList()) {
  if (wrapper instanceof SonarBuildWrapper) {
  println(fName + ' has SonarQube configuration.')
  }
  }
}
println('Done.')


Thanks

On Tue, May 26, 2020 at 1:52 PM Jan Monterrubio 
wrote:

>   at Script1.run(Script1.groovy:6)
>
> do you mind copy pasting your script here so we can check it out (with 
> whatever modifications you have).
>
> Based on what Dirk said, you might have to tweak it:
>
> "Paste it into the 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 similar configurations for SonarQube as posted in the
>> above config.xml
>> It throws the below error:
>>
>> groovy.lang.MissingMethodException: No signature of method: 
>> hudson.maven.MavenModule.getBuildWrappersList() is applicable for argument 
>> types: () values: []
>>  at 
>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
>>  at 
>> org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49)
>>  at 
>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>>  at 
>> hudson.model.BuildableItemWithBuildWrappers$getBuildWrappersList.call(Unknown
>>  Source)
>>  at Script1$_run_closure1.doCall(Script1.groovy:10)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>  at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  at java.lang.reflect.Method.invoke(Method.java:498)
>>  at 
>> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
>>  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
>>  at 
>> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
>>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
>>  at groovy.lang.Closure.call(Closure.java:414)
>>  at groovy.lang.Closure.call(Closure.java:430)
>>  at 
>> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2040)
>>  at 
>> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2025)
>>  at 
>> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2066)
>>  at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
>>  at 
>> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
>>  at 
>> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
>>  at 
>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>>  at 
>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>>  at 
>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
>>  at Script1.run(Script1.groovy:6)
>>  at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
>>  at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
>>  at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
>>  at 
>> hudson.util.RemotingDiagnostics$Script.call(RemotingDiagnostics.java:142)
>>  at 
>> hudson.util.RemotingDiagnostics$Script.call(RemotingDiagnostics.java:114)
>>  at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
>>  at 
>> hudson.util.RemotingDiagnostics.executeGroovy(RemotingDiagnostics.java:111)
>>  at jenkins.model.Jenkins._doScript(Jenkins.java:4381)
>>  at jenkins.model.Jenkins.doScript(Jenkins.java:4352)
>>  at 
>> java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
>>  at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
>>  at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
>>  at 
>> org.kohsuke.stapler.Fun

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

2020-05-26 Thread Vijay Gongle
(ContextHandler.java:1219)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:531)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)
at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
at 
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)
at 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)
at java.lang.Thread.run(Thread.java:748)


Thanks


On Tue, May 26, 2020 at 1:05 PM Jan Monterrubio 
wrote:

> Looks like the script died after some job, can you print it’s name and
> check it’s config? Maybe we need to add a null check before we try to call
> getBuildWrapperList or the config 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.
>>
>> Result
>>
>> * has SonarQube configuration.
>> * has SonarQube configuration.
>>
>> groovy.lang.MissingMethodException: No signature of method: 
>> hudson.maven.MavenModule.getBuildWrappersList() is applicable for argument 
>> types: () values: []
>>  at 
>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
>>  at 
>> org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49)
>>  at 
>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>>  at 
>> hudson.model.BuildableItemWithBuildWrappers$getBuildWrappersList.call(Unknown
>>  Source)
>>  at Script1$_run_closure1.doCall(Script1.groovy:10)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>  at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  at java.lang.reflect.Method.invoke(Method.java:498)
>>  at 
>> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
>>  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
>>  at 
>> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
>>  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
>>  at groovy.lang.Closure.call(Closure.java:414)
>>  at groovy.lang.Closure.call(Closure.java:430)
>>  at 
>> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2040)
>>  at 
>> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2025)
>>  at 
>> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2066)
>>  at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
>>  at 
>> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
>>  at 
>> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
>>  at 
>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>>  at 
>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>>  at 
>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
>>  at Script1.run(Script1.groovy:6)
>>  at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
>>  at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
>>  at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
>>  at 
>>

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

2020-05-26 Thread Vijay Gongle
   at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:531)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)
at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
at 
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)
at 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)
at java.lang.Thread.run(Thread.java:748)


On Tue, May 26, 2020 at 9:58 AM Jan Monterrubio 
wrote:

> Thanks a lot Dirk, I was trying to write this on notepad without 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 23.05.2020, 18:43 -0700 schrieb 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 ?
>>
>>
>> This is derived from a script I've used in the past to modify all
>> Artifactory wrappers in all our jobs:
>>
>> import hudson.model.*
>> import hudson.plugins.sonar.*
>> import jenkins.model.*
>>
>> // Iterate over all jobs
>> Jenkins.instance.getAllItems(AbstractProject.class).each {job ->
>>   def fName = job.getFullName()
>>
>>   // Iterate over all build wrappers
>>   for (wrapper in job.getBuildWrappersList()) {
>>   if (wrapper instanceof SonarBuildWrapper) {
>>   println(fName + ' has SonarQube configuration.')
>>   }
>>   }
>> }
>> println('Done.')
>>
>>
>> Paste it into the 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.
>>
>> HTH...
>>
>> Dirk
>>
>> --
>>
>> *Dirk Heinrichs*
>> Senior Systems Engineer, Delivery Pipeline
>> OpenText ™ Discovery | Recommind
>> *Phone*: +49 2226 15966 18
>> *Email*: dhein...@opentext.com
>> *Website*: www.recommind.de
>> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan,
>> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
>> This e-mail may contain confidential and/or privileged information. If
>> you are not the intended recipient (or have received this e-mail in error)
>> please notify the sender immediately and destroy this e-mail. Any
>> unauthorized copying, disclosure or distribution of the material in this
>> e-mail is strictly forbidden
>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
>> Weitergabe dieser Mail sind nicht gestattet.
>>
>> --
>> 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/53911cd297f0aa4bcedeac64a755e8a6aaeddcd4.camel%40opentext.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/53911cd297f0aa4bced

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

2020-05-25 Thread Vijay Gongle

> Thank you for responding. 
> Can you help me completing the query; 
> 
> I would like to fetch the jobs which has the check mark "Prepare SonarQube 
> Scanner environment" in Build Environment as shown below: 
> 
> 
> 
> Thanks, 
> Vijay
> 
> 
>> On Sat, May 23, 2020 at 11:09 PM Jan Monterrubio  
>> wrote:
>> You could iterate over the list of jobs and get the configuration traits for 
>> them, and check if they have sonar cube, something like
>> 
>> Jenkins.getInstance().items.each { it -> 
>> 
>> 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 
>>> 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 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/d82c76df-ce71-45c3-8449-79a1b1f19bac%40googlegroups.com.
>> 
>> -- 
>> 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/CADgiF9%2BG%3Df7AkSfE2v3xmQRUDcJvkThxNQ%2BL4nspcMsHrvhq5w%40mail.gmail.com.

-- 
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/24E05FE8-FCFD-4E6D-92F4-E6CC25DBEB25%40gmail.com.


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

2020-05-24 Thread Vijay Gongle
Thank you for responding.
Can you help me completing the query;

I would like to fetch the jobs which has the check mark "Prepare SonarQube
Scanner environment" in Build Environment as shown below:

[image: image.png]

Thanks,
Vijay


On Sat, May 23, 2020 at 11:09 PM Jan Monterrubio 
wrote:

> You could iterate over the list of jobs and get the configuration traits
> for them, and check if they have sonar cube, something like
>
> Jenkins.getInstance().items.each { it ->
>
> 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
>> 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 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/d82c76df-ce71-45c3-8449-79a1b1f19bac%40googlegroups.com
>> .
>>
> --
> 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/CADgiF9%2BG%3Df7AkSfE2v3xmQRUDcJvkThxNQ%2BL4nspcMsHrvhq5w%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9%2BG%3Df7AkSfE2v3xmQRUDcJvkThxNQ%2BL4nspcMsHrvhq5w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAMrMyD%3Dx3_noyFk9%3D2LaboCoSUdiwwVhRopRw9d80yZ46bcJGQ%40mail.gmail.com.


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 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/d82c76df-ce71-45c3-8449-79a1b1f19bac%40googlegroups.com.


Re: Jenkins build status always shows success

2020-01-13 Thread Vijay Gongle
Hello @Jerome @Rajendra:

Below is the sh script from the build step of the job:

#!/bin/bash

TIMESTAMP=$(date "+%Y_%m_%dT%T")
#ssh -o ServerAliveInterval=100 ec2-u...@xxfff.f.fff -tt "cd
/home/ec2-user/xxx-eportal2-myportalui"
#scp -r $WORKSPACE/* ec2-u...@xx224.9.xxx
:/home/ec2-user/xxx-eportal2-myportalui
#ssh -o ServerAliveInterval=100 ec2-u...@xx224.9.xxx -tt "cd
/home/ec2-user/xxx-eportal2-myportalui;chmod 755 -R *;npm install -i;npm
run build;sudo node version.js $BUILD_NUMBER;sudo systemctl stop nginx;"
#ssh -o ServerAliveInterval=100 ec2-u...@xx224.9.xxx -tt "cd
/usr/share/nginx/html/portal2;sudo rm -rf *;"
#ssh -o ServerAliveInterval=100 ec2-u...@xx224.9.xxx -tt "cd
/home/ec2-user/xxx-eportal2-myportalui/dist;sudo cp -rf *
/usr/share/nginx/html/;sudo systemctl start nginx;"

###aws s3 rm
s3://enterpriseportal/portal2/angularapp/$env/$RELNO/myportal/ --recursive

#npm install
npm install -i

# get chromium (stable)
#yum install chromium

# install lighthouse


#build
npm run build

#deploy
NODE_ENV=$env release=$RELNO npm run deploy

#ssh -o ServerAliveInterval=100 ec2-user@xx13xx9 -tt "sudo -i sed -i
\"s/^\(\s*\"$env\"_angularapp_myportal_release\s*:\s*\).*/\1$RELNO/\"
/etc/puppetlabs/code/environments/production/hieradata/s3sync.yaml"
ssh -o ServerAliveInterval=100 ec2-user@xx13xx73 -tt 'sudo -i puppet
apply -e "include base::hiera_git"'
ssh ec2-user@xx13xx73 -tt "sudo -i sed -i
\"s/^\(\s*s3sync\:\:\"$env\"_angularapp_myportal_release\s*:\s*\).*/\1$RELNO/\"
/tmp/workspace_git/data/s3sync.yaml"
ssh -o ServerAliveInterval=100 ec2-user@xx13xx73 -tt 'sudo -i
/etc/puppetlabs/puppet/scripts/updateyaml.sh'

ssh -o ServerAliveInterval=100 ec2-user@xx13xx73 -tt "sudo -i puppet
apply -e \"include portal2::angularapp_sync\""


#Sonar
npm run sonar
node -v



Under which I have the exit code set to 1 but doesn't work with either 0 or
1 or blank.

[image: image.png]

It's weird though.

Please share your thoughts on fixing this.

Thanks,
Vijay


On Mon, Jan 13, 2020 at 9:31 AM Jérôme Godbout  wrote:

> Just asking, is the shell script (bat or sh) argument are set
>
> *returnStatus = false, returnStdout = false*
>
>
>
> or if the default did changes into recent release? If not into
> Jenkinsfiles, is the API into the plugin did modify anything?
>
> Maybe this sound obvious but sound like something like that did changes
> and is not backward compatible.
>
>
>
>
>
>
> [image: 36E56279]
>
> une compagnie
>
> RAPPROCHEZ LA DISTANCE
>
> *Jérôme Godbout*
> Développeur Logiciel Sénior /
> Senior Software Developer
>
> *p:* +1 (418) 800-1073 ext.:109
>
> amotus.ca <http://www.amotus-solutions.com/>
> statum-iot.com
>
> <https://www.facebook.com/LesSolutionsAmotus/>
> <https://www.linkedin.com/company/amotus-solutions/>
> <https://twitter.com/AmotusSolutions>
> <https://www.youtube.com/channel/UCoYpQgsmj1iJZyDjTQ3x8Ig>
>
>
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Vijay Gongle
> *Sent:* January 12, 2020 8:57 PM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Jenkins build status always shows success
>
>
>
> I didn’t set the exit status to either 0 or 1.
>
>
>
> I did set it now to 1 and the status 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 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 and running bash shell script of Jenkins
> build.
>
>
>
> Thanks,
>
> Vijay
>
> Sent from my iPhone
>
>
>
> On Jan 10, 2020, at 11:28 PM, RAJENDRA PRASAD <
> rajendra.penuma...@gmail.com> wrote:
>
> 
>
> Could you please elaborate on what kind of project you are running?
>
> Running from Bash Shell 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 have in console output, it shows the results as
> “success” and green and never marks the status “failed” at the end.
&g

Re: Jenkins build status always shows success

2020-01-12 Thread Vijay Gongle
I didn’t set the exit status to either 0 or 1. 

I did set it now to 1 and the status 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 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 and running bash shell script of Jenkins 
>> build.
>> 
>> Thanks,
>> Vijay 
>> Sent from my iPhone
>> 
>>>> On Jan 10, 2020, at 11:28 PM, RAJENDRA PRASAD 
>>>>  wrote:
>>>> 
>>> 
>> 
>>> Could you please elaborate on what kind of project you are running?
>>> Running from Bash Shell 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 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 similar configuration and script, it still 
>>>> behaves the same way. 
>>>> 
>>>> I’m sure someone can help me with it.
>>>> 
>>>> Thanks in advance!
>>>> Vijay 
>>>> 
>>>> -- 
>>>> 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/297b1845-300b-403a-b6a1-75df69a69c8a%40googlegroups.com.
>>> 
>>> -- 
>>> 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/CAMrg02QwFJ_qpxs_M8La1ayFja4-7Pv4%2BFfDQ8OKa3FBhw27%2BQ%40mail.gmail.com.
>> 
>> 
>> -- 
>> 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/996DC916-80B4-479E-BCB7-FBEE5CAD900B%40gmail.com.
> 
> -- 
> 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/CADgiF9KVUMS8LkdFE%3D9tQYSfXxf%3DyZpeHp7SkWGmHAyvRRyitA%40mail.gmail.com.

-- 
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/A1A4EAC0-EE49-4FBF-999D-A22D250C9A4A%40gmail.com.


Re: Jenkins build status always shows success

2020-01-11 Thread Vijay Gongle
Correct. It’s an Angular project and running bash shell script of Jenkins build.

Thanks,
Vijay 
Sent from my iPhone

> On Jan 10, 2020, at 11:28 PM, RAJENDRA PRASAD  
> wrote:
> 
> 
> Could you please elaborate on what kind of project you are running?
> Running from Bash Shell 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 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 similar configuration and script, it still behaves 
>> the same way. 
>> 
>> I’m sure someone can help me with it.
>> 
>> Thanks in advance!
>> Vijay 
>> 
>> -- 
>> 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/297b1845-300b-403a-b6a1-75df69a69c8a%40googlegroups.com.
> 
> -- 
> 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/CAMrg02QwFJ_qpxs_M8La1ayFja4-7Pv4%2BFfDQ8OKa3FBhw27%2BQ%40mail.gmail.com.

-- 
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/996DC916-80B4-479E-BCB7-FBEE5CAD900B%40gmail.com.


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 similar configuration and script, it still behaves the 
same way. 

I’m sure someone can help me with it.

Thanks in advance!
Vijay 

-- 
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/297b1845-300b-403a-b6a1-75df69a69c8a%40googlegroups.com.


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 enabling this, but none of it has 
> worked so far.
> 
> Would appreciate any direction/thoughts with respect to resolving this.
> 
> Jenkins version: 2.164.3
> 
> What other details for the environment would be required to identify what is 
> missing in our environment.. please let me know.
> -- 
> 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/1da2e39b-c6ff-404c-8b00-e305e78a90a5%40googlegroups.com.
> 

-- 
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/C22E4743-9168-42F4-99CD-38436EFD15EB%40gmail.com.


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 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/c5adb0f2-cf7f-46a4-bf2f-a88931a76770%40googlegroups.com.


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 run as post step which I want to get these from Git 
as well. How can I do that ? 

Help is appreciated. 

Thanks in advance!

-- 
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/8fe125aa-8984-48d0-a5bb-c1590dd54cba%40googlegroups.com.


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 in the pipeline, if there's a code change 
in 2nd job but not in 3rd job then I would like to skip the 2nd job and 
build the 3rd job directly. 
Likewise, any job where the code is not changed, would like to skip and 
jump to following job. 

Please help me if there;s a way to resolve this unwanted builds in the 
pipeline.  

-- 
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/345f6008-fdd7-4ff8-bb84-4018c99dd956%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.