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 s

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 insid

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 act

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

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

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 variab

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 be

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/dep

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 yo

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 me

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 ple

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

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 http

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 th

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 i

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

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

Re: How to isolate docker container tests with Jenkins?

2019-09-06 Thread Jan Monterrubio
-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, 20

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

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.

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 s

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 run

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 A

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

Re: Jenkins @Library load dynamic branch from variable

2020-01-16 Thread Jan Monterrubio
les 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 confi

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

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 the

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

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

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 Grou

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 pl

Re: Re: Jenkins pipeline Testing

2020-03-24 Thread Jan Monterrubio
our 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 >

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 pack

Re: Maveen issue

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

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 m

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?

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.

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

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 Pl

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

2020-05-25 Thread Jan Monterrubio
e 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

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, d

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

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

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

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

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

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

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

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

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

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

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

2020-05-27 Thread Jan Monterrubio
> } > //if(job.respondsTo('getPublishersList')) { > for (wrapper in job.getPublishersList()) { > //if (wrapper instanceof SonarPublisher) { > println(wrapper) > //} > //} > } > } > println('Done.') > > Thanks, > Vijay >

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

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

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

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

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 thi

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

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

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

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 t

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 o

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

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 alre

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

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

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

Re: Jmeter Test execution - Blank Performance Trend graphs

2018-08-06 Thread Jan Monterrubio
; 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. Pl

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 er

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, > > Ple

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

2018-08-07 Thread Jan Monterrubio
ck) 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 >

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 O

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 defi

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 Goog

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

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

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_PROP

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 i

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: > Anyo

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 ont

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 Jenkin

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

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 fo

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

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 m

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

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 jenk

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

2018-09-18 Thread Jan Monterrubio
iner 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? >

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 atte

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 c

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 je

Re: Still Login Problem.

2018-09-24 Thread Jan Monterrubio
8 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 >> "Jenki

Re: Still Login Problem.

2018-09-24 Thread Jan Monterrubio
t; > > 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

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 an

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 ques

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

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

Re: Run script before build is deleted?

2018-10-13 Thread Jan Monterrubio
tes. > > > 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

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 fol

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

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

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' } }

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

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

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 >

  1   2   >