Re: ChangeLog parser without SCM

2012-04-01 Thread Martin d'Anjou
I maintaing a rogue Jenkins installation which has no access to the SCM. I build with a shell script that launches the job by ssh to another account on a remote host. At the end of the build, I rsync relevant files and make them artifacts, including a file containing the differences (diff -u)

Re: ChangeLog parser without SCM

2012-04-01 Thread Martin d'Anjou
: Could you make a local git mirror and trigger Jenkins off that? Andrew Melo Sent from my secret fortress. On Apr 1, 2012, at 15:07, Martin d'Anjou martin.danjo...@gmail.com mailto:martin.danjo...@gmail.com wrote: I maintaing a rogue Jenkins installation which has no access to the SCM. I

What is the MVC framework on which Jenkins is built?

2012-08-14 Thread Martin d'Anjou
What is the MVC framework on which Jenkins is built? Thanks, Martin

Build Promotion and Copy Artifact: current build is overwritten

2012-08-16 Thread Martin d'Anjou
Hi, When I promote an archived build while a build is running, the Copy Artifact plugin overwrites the running build artifacts with the archived ones. How should I configure the Build Promotion and the Copy Artifact to avoid this problem? Thanks, Martin

scaling jenkins to multiple projects without copying the projects

2012-08-24 Thread Martin d'Anjou
What is the plan to scale up Jenkins to handle a very large number of projects? Right now, I have 3 projects in Jenkins. They all have the same build flow, so any improvement or plugin I add to one of them, I manually copy it to the other two. As we are about to bring more projects to Jenkins,

why no uninstall option for unused plugin

2012-11-21 Thread Martin d'Anjou
Hello, Do you know why there is no uninstall button for some of the unused plugins? For example, the External Monitor Job Plugin has not uninstall option: Thanks, Martin inline: jjeebiih.png

uninstallation pending message

2012-11-21 Thread Martin d'Anjou
Hi, Anyone knows what to do about the message uninstallation pending in the plugin manager after you attempt to uninstall a plugin? Thanks, Martin inline: jejbafjj.png

How do I known what properties and method exist when writing Groovy scripts?

2012-11-26 Thread Martin d'Anjou
Hi, How do I find out the methods and properties of things when I write a Groovy script? For example, Hudson.instance.getItem(), how am I supposed to know that instance is a property of Hudson, and that getItem() is a method of instance? Where do you people find all this? Another example:

How to execute an action when build is submitted

2014-08-27 Thread Martin d'Anjou
Hi, Is it possible to execute an action when the build is submitted, before it goes in the pending state. Martin -- 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

Update center is missing a plugin but it is listed in default.json

2014-12-11 Thread Martin d'Anjou
I have an odd situation where I want to install the Summary Display Plugin, bit it is not listed as being available on the web page of the update center. However, I can see this plugin in the default.json file on the server! How do I debug and fix this? I rebooted the server on the weekend, it did

jenkins support for parametrized test results

2015-05-05 Thread Martin d'Anjou
Does jenkins support the JUnit XML format of JUnitParams for reporting tests? https://github.com/Pragmatists/JUnitParams/issues/38 If not, is there a Jenkins test report plugin able to report and track parametrized tests reports? The report format has to be as easy as JUnit XML as I write the

Re: [workflow plugin] inject environment variables or using parameters to prepare the run

2015-10-23 Thread Martin d'Anjou
On Wednesday, February 25, 2015 at 6:22:57 PM UTC-5, Jesse Glick wrote: > > On Thursday, February 5, 2015 at 4:30:11 AM UTC-5, Christoph Vogtländer > wrote: >> >> I want to use the workflow plugin and together with the "Prepare an >> environment for the run" feature provided by the EnvInject

Re: Access BUILD_CAUSE and BUILD_CAUSE_USERIDCAUSE through Build Flow DSL

2015-10-29 Thread Martin d'Anjou
Been asking myself the same question for 3 years. The only solution for me is to use EnvInject, fetch the cause from the Jenkins internal objects, and export it as a new env variable to the build. It gets complicated when the cause is another build, you have to do a recursive search to get to

envinject plugin: should it be able to set the workspace?

2015-10-23 Thread Martin d'Anjou
A while ago, I was able to use the envinject plugin to set the workspace path, but it does do that anymore. I wish I could control the workspace location for two reasons: 1) I need to share workspaces between jobs because of the large volume of data being produced (archiving is not practical)

Workflow: load a class from flow.groovy hangs jenkins, can't be killed in UI

2015-11-14 Thread Martin d'Anjou
I have a workflow job that cannot be killed, unless the java process running Jenkins is killed. I think it is a bug. Here are the steps to reproduce: // Workflow job: def flow node() { git 'file:///home/martin/git/workflow-job-definition.git' flow = load 'flow.groovy' } def m =

Re: envinject plugin: should it be able to set the workspace?

2015-10-31 Thread Martin d'Anjou
On Friday, October 23, 2015 at 11:08:22 AM UTC-4, rginga wrote: > > Martin, while the envinject plugin will let you set environment variables > that you might be able to use to point to some other folder than the job’s > default workspace, you might be able to use the Use Custom Workspace option

Workflow manual input step: how do I use it the right way?

2015-10-08 Thread Martin d'Anjou
I think I am using the Workflow manual input step incorrectly. I must misunderstand the problem it solves. My pipeline has several steps: 1) compiler phase 1 and test (1 hour) 3) manually decide whether to stop or continue to step 4 4) compiler phase 2 and more tests (2 to 4 hours) 5) manually

Re: Workflow manual input step: how do I use it the right way?

2015-10-13 Thread Martin d'Anjou
> > if you are using all the executors then you are using the "input" step > inside a node block. > Thanks. Putting the input step outside of a node block releases the execution slot. But the blue ball keep blinking on the project page, that will be quite annoying with lots of builds pending

Re: [workflow-plugin] where does the print output go - not present in jenkins console

2015-11-17 Thread Martin d'Anjou
I have the same issue. How do I print messages to the console from a class defined in a workflow? On Thursday, June 25, 2015 at 5:29:49 AM UTC-4, Arek Skalski wrote: > > This actually changes nothing: > > Started by user ** > Running:

Reuse workflow code across workflow jobs

2015-11-13 Thread Martin d'Anjou
Is there a way groovy workflow scripts from the "Workflow script from SCM" could import classes from their own cloned path, or be able to do something similar to the Gradle "apply from: 'other.gradle'"? I read about the Workflow Global Library, but that seems like an additional Git repository

Re: Approaches for sharing workspace in a pipeline

2015-12-29 Thread Martin d'Anjou
On Wednesday, December 23, 2015 at 9:45:57 PM UTC-5, John D. Ament wrote: > > Hi, > > I was wondering if anyone had any best practices or tips to share on have > a common workspace for a pipeline job. > I use Workflow job definitions, and I compute the location of the workspace in each job of

Re: Approaches for sharing workspace in a pipeline

2015-12-30 Thread Martin d'Anjou
> When accessing workspaces in Workflow you're also facing the problem of > concurrent runs. How do you deal with that? > > Thanks in advance! > > Greetings, > Thomas > > > On Wednesday, December 30, 2015 at 3:11:46 AM UTC+1, Martin d'Anjou wrote: >> >&g

Why can't "workflow load" load from "Workflow script from SCM"?

2015-11-23 Thread Martin d'Anjou
Anyone knows why the workflow load step cannot load from the "Workflow from SCM" checkout? I am struggling to understand why this is not allowed. Why does it need to load from another SCM checkout? Thanks, Martin -- You received this message because you are subscribed to the Google Groups

Re: Workflow: load a class from flow.groovy hangs jenkins, can't be killed in UI

2015-11-19 Thread Martin d'Anjou
rg/browse/JENKINS-25550?focusedCommentId=242057=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-242057 > > to kill a running workflow > > 2015-11-15 3:50 GMT+01:00 Martin d'Anjou <martin@gmail.com > >: > >> I have a workflow job that ca

Re: Issue with running csh commands in the jenkins "Execute Shell" commands

2016-06-24 Thread Martin d'Anjou
Check the contents of the .cshrc file, there is probably something setting or loading aliases there. You should also look into using something more modern like bash. On Thursday, June 23, 2016 at 12:36:21 PM UTC-4, sivarajesh jarugula wrote: > > I am running a Jenkins parameterized build along

Jenkinsfile: is more than one possible?

2016-03-11 Thread Martin d'Anjou
I was re-reading JENKINS-31155 , and in the context of a project in a Git repository, I have more than one CI/CD pipeline per branch. So a single Jenkinsfile does not appear to be enough. Anyone has thoughts on that? Martin -- You received

Jenkinsfile: usable for pull request integration?

2016-03-11 Thread Martin d'Anjou
If I understand correctly, the Jenkinsfile is stored in the same repository as the code it manages. But I have a concern with using the Jenkinsfile to manage pull request integration. My definition of pull request integration: checkout the destination branch, merge the pull request, run test,

Re: Development environment for Pipeline (aka workflow)

2016-03-11 Thread Martin d'Anjou
On Tuesday, February 2, 2016 at 5:14:54 PM UTC-5, Tom Kierzkowski wrote: > > >- How do you test your scripts within your IDE/development setup? > > > I do not use and IDE, but I was shown these two plugins which show a way of testing pipeline scripts: -

Re: simple build (DSL) for pipeline plugin

2016-03-11 Thread Martin d'Anjou
Hi Michael, I played with the plugin quite a bit. I am very enthusiastic about this plugin, because it gives me a way to manage the pipeline script development as if it were a regular plugin (code, test, version and release), while being much easier to write than a regular plugin. I do not

Re: simple build (DSL) for pipeline plugin

2016-03-30 Thread Martin d'Anjou
I will reply to my own question: plugins uploaded manually do not fetch their dependencies. -- 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

Git Plugin: merge before build not working?

2016-04-06 Thread Martin d'Anjou
I'm trying to get the Git Plugin to merge a branch to master before build, in a Pipeline DSL script, but it's not convincingly working yet. After the checkout step has run, a quick "git log --graph" command does not reveal a merge. The Pipeline DSL code I have is: node { checkout([

Re: Storing job configurations with source code in VCS

2016-04-08 Thread Martin d'Anjou
You could look at the Simple Build For Pipeline Plugin , combined with some TBD way of automatically creating job configurations (perhaps something like the BitBucket Branch Source Plugin

Re: How to do a simple post request using HTTP request plugin

2016-03-21 Thread Martin d'Anjou
I don't think there is a way to enter post data. According to the code, the post data is simply the list of parameters (which parameters I don't remember): https://github.com/jenkinsci/http-request-plugin/blob/master/src/main/java/jenkins/plugins/http_request/util/HttpClientUtil.java#L81 You

Re: simple build (DSL) for pipeline plugin

2016-04-04 Thread Martin d'Anjou
I have written enough code to occasionally get a serialization error: Apr 04, 2016 8:22:44 AM org.jenkinsci.plugins.workflow.cps.CpsThreadGroup saveProgram WARNING: program state save failed java.io.NotSerializableException: org.codehaus.groovy.runtime. HandleMetaClass Do you know how I can test

Re: SCM Plugin for ClioSoft's SOS?

2016-05-18 Thread Martin d'Anjou
I agree this discussion should be here and not on the dev mailing list. Have you approached Cliosoft to ask if they would write a Jenkins plugin for you? It surely can help them as well as help you. For SCM, I am switching to Git. For storing generated assets (pre-compiled libraries, netlists,

Re: Using HTTP Request plugin to remote control an IDE

2016-08-12 Thread Martin d'Anjou
Sounds like you need to implement a couple of polling loops (a loop to wait for the builder, a loop to query the status). I would do that in the Pipeline DSL. That would be easier than modifying the plugin. For example: def response = httpRequest 'http://localhost:8080/' while (response.status

Re: pipeline - Avoiding repeating work if nodes execute on same build executor?

2016-07-20 Thread Martin d'Anjou
You could also try the external workspace manager plugin (alpha has been released): https://jenkins.io/blog/2016/06/30/ewm-alpha-version/ Martin -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

What is dynamic reporting, and is there plugin support?

2017-01-19 Thread Martin d'Anjou
Hi, I just heard the term "dynamic reporting". I am not familiar but I can guess what it means (report while tests are still running). Where can I see this in action? What plugins support it? Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Jenkins

Re: Do not delete a completed job workspace under all conditions

2016-08-30 Thread Martin d'Anjou
On Thursday, August 25, 2016 at 11:15:43 AM UTC-4, Robert Beddow wrote: > Is there anything like this out there? Or does anyone have any suggestions > of how else I could get the functionality I'm looking for? > Yes, you can try the External Workspace Manager Plugin

Re: Looking for plugin that notifies an http(s) endpoint after build is done

2016-09-26 Thread Martin d'Anjou
> > I found the Notification > plugin > that does the job for me, but it is not compatible with the Pipeline > feature. > Before I go and fix this I wanted to know if anyone knows a plugin that > does this already? > You

Re: Copy artifact Plugin

2016-08-27 Thread Martin d'Anjou
Maybe another plugin can help with your problem. It is the external workspace manager plugin . If the master and the slave can mount the same disk, then they can share the workspace. You could use that to perform

Re: [ANN]: Ask the Experts Booth at Jenkins World

2016-10-19 Thread Martin d'Anjou
Hi Alyssa, Do you know where to find the GSoC lightning talk #2 (right after Oleg, by Alex?) Thanks, Martin -- 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

Re: Help request: Naming things is hard (JENKINS-43426)

2017-04-21 Thread Martin d'Anjou
Disclaimer: I do not use those plugins. *Can you suggest a better UI name for this trait than "Discover branches"?* No. > > *Does "Discover branches" scream out what it does?* Yes. > > *Can you suggest a better UI name for the "Strategy" field in "Discover > branches"?* No. > >-

Inventory of development flows for Jenkinsfile and Pipeline Library

2017-09-06 Thread Martin d'Anjou
I'd like to inventory the current development flows for unit testing, integration testing and release of Jenkinsfile and Pipeline DSL libraries. I am guessing everyone's objective is to reach a level where a single "gradle" or "mvn" command runs all tests and deploys a new set of

Re: Pinning a node to a particular workspace in jenkins pipeline?

2017-09-06 Thread Martin d'Anjou
The External Workspace Manager Plugin can be used to solve this problem. I use it every day. It saves time as there is no stashing required. Here is an example of reusing the workspace with two nodes in the same job:

Re: Project with several Git repositories

2018-05-12 Thread Martin d'Anjou
You can write a Jenkinsfile that creates a clone of any git repository (calling out to Git with sh step for example), hence Jenkinsfiles can be central for however many repositories you have. No need for 100's of copies of the same Jenkinsfile in 100's of git repositories. You can create and

Re: Pipeline: Get variable value, when its name is stored in another variable

2018-04-29 Thread Martin d'Anjou
Shiran, Put #!/bin/bash at the start of the script. By default Jenkins calls sh, which is not the same as bash and sh does not have variable indirection. You can also safely remote the backslash if you use triple single-quotes: node() { script='''#!/bin/bash export

Re: How to configure workspace on the Jenkin

2018-08-05 Thread Martin d'Anjou
> > is there a way to access the workspace after termination of the pod. If you need the workspace to persist after the build and be available to other agents, you can use the External Workspace Manager Plugin .

Jenkins refuses to queue and run identical consecutive build requests from curl

2018-04-17 Thread Martin d'Anjou
I try to trigger multiple builds rapidly using curl, but Jenkins silently refuses to launch the builds. It keeps returning the same queue item in the "Location": $ curl -I -X POST "http://localhost:8080/job/test-123/buildWithParameters/params?foo=i; HTTP/1.1 201 Created Date: Wed, 18 Apr 2018

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

2018-10-30 Thread Martin d'Anjou
I wrote a proposal to create a plugin to wrap the jenkins-rest library inside a jenkins plugin for Google Summer of Code 2019 (GSoC). This would eliminate the need to

Re: Logging of plugins

2018-10-27 Thread Martin d'Anjou
I wonder if we could make that a GSoC project for next year. Any opinions? On Tuesday, October 23, 2018 at 3:49:09 PM UTC-4, gotvi...@gmail.com wrote: > > How do we capture the logs of activities of each plugin we install in > Jenkins? > > We use Audit Trail plugin. But, that doesn't capture

Re: Need help debugging ChannelClosedExceptions

2018-11-08 Thread Martin d'Anjou
Hi, I cannot help directly, but last summer we had a GSoC project to implement remoting over Kafka as a fault tolerant communication layer in Jenkins. If you keep having comms breakdown, you could head over to the Remoting Gitter Chat

Re: How to handle complex job dependency?

2018-11-10 Thread Martin d'Anjou
I do not know of an automated way of doing that. If I understand correctly, the release number is assigned by the build-and-test phase, and it published the docker repo. I assume that this release number is known one way or another by the users, since it has been published to the docker repo.

Re: How to handle complex job dependency?

2018-11-12 Thread Martin d'Anjou
is > > On Saturday, November 10, 2018 at 9:35:12 PM UTC-5, Martin d'Anjou wrote: >> >> I do not know of an automated way of doing that. >> >> If I understand correctly, the release number is assigned by the >> build-and-test phase, and it published the docker

Re: Issue with spaces in string parameter

2018-11-12 Thread Martin d'Anjou
I doubt that would fix it, I was curious and try it. Jenkins trims, but it does not split the value on spaces. The problem might be on how you pass the value to your python script. Can you share that? Martin On Monday, November 12, 2018 at 8:15:55 AM UTC-5, Danny Jacob wrote: > > Uncheck

Re: how to find how a Jenkins instance is installed?

2018-11-14 Thread Martin d'Anjou
If you mean how do you test if an instance is ready (after a restart), you can use curl. httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL) while [[ $httpCode != "200" ]]; do sleep 5 httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL) done echo "Jenkins is ready." On

Re: Unique name (current date+new build number) for build in jenkins Job

2019-02-09 Thread Martin d'Anjou
Hello Pradeep, You could use the Run Selector plugin to get the previous build, and determine where you are in the sequence based on that and on the current time of day. It returns a RunWrapper

Re: Unique name (current date+new build number) for build in jenkins Job

2019-02-10 Thread Martin d'Anjou
d? > > My 2 cents. > Le sam. 9 févr. 2019 à 17:46, Martin d'Anjou > a écrit : > >> Hello Pradeep, >> >> You could use the Run Selector >> <https://github.com/jenkinsci/run-selector-plugin> plugin to get the >> previous build, and determi

Re: Unique name (current date+new build number) for build in jenkins Job

2019-02-16 Thread Martin d'Anjou
Get the basic information such as the previous build number and the time the previous build started: def runWrapper = selectRun job: 'pipeline-test', selector: permalink('lastBuild') echo runWrapper.getNumber().toString() echo runWrapper.getStartTimeInMillis().toString() The rest you have to

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-02 Thread Martin d'Anjou
You can use the external workspace manager for this purpose. No copies are made, just reuse the same workspace between jobs. Examples are provided in the README. On Monday, July 1, 2019 at 4:37:40 AM UTC-4, sirisha sai wrote: > >

Accessing user build variables of another build

2019-08-18 Thread Martin d'Anjou
Have a look at https://github.com/jenkinsci/run-selector-plugin/blob/master/README.md Martin -- 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

Re: Programmatically searching the artifacts from multiple jobs

2019-08-18 Thread Martin d'Anjou
Could the run selector plugin help? https://github.com/jenkinsci/run-selector-plugin Martin -- 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

Re: Programmatically searching the artifacts from multiple jobs

2019-08-19 Thread Martin d'Anjou
of time saving > them, so they can be attached to a Jira ticket. > Jenkins doesn't provide a way to save those files. You need to view > each one, copy it's contents into an editor, then save those files, > manually. > > thanks > > On Sun, Aug 18, 2019 at 10:49 AM Mart

[Announcement] External Workspace Manager 1.2.1 fixes backward compatibility problem with Jenkins 2.150.x

2019-11-04 Thread Martin d'Anjou
Hello, I would like to announce that release 1.2.1 of the external workspace manager plugin <https://github.com/jenkinsci/external-workspace-manager-plugin/> (released a few days ago) fixes the backward compatibility problem encountered in Jenkins 2.150.x. Best, Martin d'Anjou -

Whats is the format for custom pipeline library help files?

2019-10-18 Thread Martin d'Anjou
Hello, We can write documentation for pipeline library in files like vars/foo.txt and resource/org/foo/bar.json, but I would like to know what format and markups are supported. I found the help for the docker pipeline plugin, but it's written in jelly

Re: Whats is the format for custom pipeline library help files?

2019-10-18 Thread Martin d'Anjou
; > > Runs the href='https://github.com/jenkinsci/acceptance-test-harness'>Acceptance > Test Harness in a configurable way > > > > On Fri, Oct 18, 2019 at 4:03 PM Martin d'Anjou > wrote: > >> Hello, >> >> We can write documentation for pipel

Re: Whats is the format for custom pipeline library help files?

2019-10-22 Thread Martin d'Anjou
er setting? E.g. via JCasC: > > Jenkins: > > … > > markupFormatter: > > rawHtml: > > disableSyntaxHighlighting: false > > … > > > > HTH Reinhold > > > > > > *From:* jenkins...@googlegroups.com < > jenkins...@googlegroups.com &g

Re: Anyway to programatically update a Jenkinsfile?

2019-10-06 Thread Martin d'Anjou
Use a template engine to generate Jenkins files, I suggest the StringTemplate template engine. It's a purely declarative template. There are examples in the intro doc that you can try in

Re: How to access nfs volume from jenkins agent

2019-12-20 Thread Martin d'Anjou
Can you specify which plugin you are talking about? For NFS access, the usual way would be to make the jenkins account a member of a unix group with the right access level (read, read/write) for the NFS folder. On Wednesday, December 18, 2019 at 10:05:53 PM UTC-5, Desmond Lee wrote: > > For the

What is the right way to use hudson.PluginManager.workDir ?

2020-08-25 Thread Martin d'Anjou
Hi, I download plugins with the plugin installation manager tool, and I put them in a folder (/someplace/plugins). Then I start jenkins with -Dhudson.PluginManager.workDir set to that folder, but Jenkins does not load the plugins from that folder, and its JENKINS_HOME=/home/jenkins/plugins