Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-11-13 Thread Craig Rodrigues
* So it looks like in order to access http://localhost:8080/github-webhook/ , I need to pass some sort of authentication in order to access that URL. How did you configure this in your setup? -- Craig -- You received this message because you are subscribed to the Google Groups "Jen

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-11-11 Thread Craig Rodrigues
I tried with the trailing slash, and still got a 404 error. I think your blog post is missing details of how to configure the *github-webhook* URL. I think this is configured via this plugin: https://github.com/jenkinsci/github-plugin/ -- Craig On Sun, Nov 10, 2019 at 2:34 PM Michael Neale

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-11-08 Thread Craig Rodrigues
2.190.2 server, with Blue Ocean, Pipeline, and many other plugins installed. -- Craig -- 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

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Craig Rodrigues
ing a service which may disappear. -- Craig On Thu, Oct 24, 2019 at 2:39 PM Michael Neale wrote: > yeah fair point it doesn't have to be right next to it - but it has to be > somewhere it can reach /github-webhook endpoint - so could be a totally > separate app? (as long as

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Craig Rodrigues
API? -- Craig On Thu, Oct 24, 2019 at 1:01 AM Michael Neale wrote: > Hi Craig, glad that post is getting mileage! > > So in kubernetes, I guess that would be adding to the pod that is running > your Jenkins container: there would be a pod definition (not sure if you > wrote it) som

GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Craig Rodrigues
public GitHub triggering builds on my Jenkins server running behind a firewall. Thanks. -- Craig -- 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

Re: Jenkins Pipeline: Variable expansion issues

2019-03-12 Thread Mike Craig
rs? > > > > HTH Reinhold > > > > *From:* jenkins...@googlegroups.com < > jenkins...@googlegroups.com > *On Behalf Of *Mike Craig > *Sent:* Montag, 11. März 2019 23:33 > *To:* Jenkins Users > > *Subject:* Jenkins Pipeline: Variable expansion issues >

Jenkins Pipeline: Variable expansion issues

2019-03-11 Thread Mike Craig
Hello, The following snippet from my pipeline is acting very strangely, the values from the print statements are correct print "asgName: $asgName" print "asgMax: $asgMax" print "asgMin: $asgMin" asgIncrease = (asgMax * 2) print "S

Is there a trim method in the string parameter ?

2019-03-06 Thread Mike Craig
Hello, For clear text data entry I'd like to be able to enable a 'trim' feature. This page doesn't document one: https://jenkins.io/doc/book/pipeline/syntax/#parameters I would like something like this, does it exist? I couldn't get the below to work for me. parameters { string(name: 'compon

Re: Pipeline: How to modify Build History status monitor

2019-02-28 Thread Mike Craig
us = 'success' > } > > Greets > > > > Ursprüngliche Nachricht > Von: Mike Craig > Datum: 27.02.19 23:12 (GMT+01:00) > An: Jenkins Users > Betreff: Pipeline: How to modify Build History status monitor > > Hello, > > Prior to usin

Re: Pipeline: How to modify Build History status monitor

2019-02-28 Thread Mike Craig
Perfect, thank you for the reference! Having a "how-to" question, and mapping that to a documentation section is the hardest part for me. :) On Wed, Feb 27, 2019 at 10:55 PM Andreas Magnusson < andreas.ch.magnus...@gmail.com> wrote: > Not quite sure what you want to do, but we modify currentBuild

Pipeline: How to modify Build History status monitor

2019-02-27 Thread Mike Craig
Hello, Prior to using declarative pipeline, we were able to modify the Build History to indicate information we wanted to see. We are using a shared "terraform-deploy" pipeline now and would like to modify this build history to display which project (aka component) was built in that run. [imag

Re: Jenkins junit can't find the test report produce by gtest

2019-01-09 Thread Craig Rodrigues
://jenkins.io/doc/pipeline/steps/xunit/ -- Craig On Wed, Jan 9, 2019 at 7:37 PM Charlie Cheng wrote: > Hello, I want to known why the Junit can't find the gtest report. > > everytime I check the directory, and I am sure that the gtest report is > exist, below is my Jenkinsfile: >

Re: Indicate changes since last build

2018-09-07 Thread Craig Rodrigues
ot;) (5) gather all the changesets you need, and generate an HTML report: https://www.cloudbees.com/blog/publishing-html-reports-pipeline If you can find a plugin to do what you want, that would be great, but I can't think of any offhand. -- Craig On Thu, Sep 6, 2018 at 10:14 AM Wouter Slob

Re: Indicate changes since last build

2018-09-06 Thread Craig Rodrigues
. currentBuild is of type RunWrapper, and you can see the full documentation for those methods here: https://javadoc.jenkins.io/plugin/workflow-support/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.html If you get something to work, please post a code snippet. -- Craig On Thu, Sep 6

Re: How to use NodeLabel Parameter Plugin in Declarative Pipeline ?

2018-09-05 Thread Craig Rodrigues
I haven't tried it, but see if this example works for you: https://github.com/jenkinsci/pipeline-examples/blob/master/pipeline-examples/trigger-job-on-all-nodes/triggerJobOnEveryNode.groovy#L14 -- Craig On Mon, Sep 3, 2018 at 6:43 AM Wramberg wrote: > Im trying to use the NodeLabel P

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

2018-08-20 Thread Craig Rodrigues
red 888, I want the exact same thing, i.e. a common post method which I can pass arguments to, such as: commonPost{email='ema...@somewhere.blah', notifySlack=true} etc. If you get something to work, please post a reference to an existing pipeline with this. Thanks! -- Craig On M

Re: Blue Ocean test results show incorrect time

2018-08-16 Thread Craig Rodrigues
I encountered the same problem and reported the issue here: https://issues.jenkins-ci.org/browse/JENKINS-52944 -- Craig On Thu, Aug 16, 2018 at 12:07 PM Sean Talts wrote: > I'm also having this problem - I would be fine with Jenkins requiring > either ms or s, but we use the perfo

Re: pipeline: parameters documentation.

2018-08-13 Thread Craig Rodrigues
the different types of parameters which are available, and the code necessary to use them. -- Craig On Mon, Aug 13, 2018 at 10:26 PM Craig Rodrigues wrote: > I submitted this pull request which got accepted: > > https://github.com/jenkins-infra/jenkins.io/pull/1711 > > and now there ar

Re: pipeline: parameters documentation.

2018-08-13 Thread Craig Rodrigues
I submitted this pull request which got accepted: https://github.com/jenkins-infra/jenkins.io/pull/1711 and now there are more examples of parameters at: https://jenkins.io/doc/book/pipeline/syntax/#parameters for *text*, *choice*, *password*, *booleanParam*, and *file* parameters. -- Craig

Re: Post build step to perform some SVN actions

2018-08-13 Thread Craig
I'm still stuck with this, does anyone have any suggestions? Thanks in advance! On Tuesday, 31 July 2018 09:20:42 UTC+1, Craig wrote: > > Hi, > > I'd like to perform some svn actions after a build, such as tagging the > built artefacts. > There was a plugin >

Re: Pipeline: BUILD_URL for Blue Ocean

2018-04-20 Thread Craig Rodrigues
-- Craig On Wed, Apr 18, 2018 at 4:29 AM, Sverre Moe wrote: > We have the following content to mail notifications. > def content "Check console output at ${env.BUILD_URL} to view the > results." > > Where env.BUILD_URL has the following URL > https://build-ci.compa

Credentials plugin not saving new SSH credentials

2017-12-08 Thread Craig Rodrigues
ot;Add", and then try to expand the credentials dropdown, the new credential I added does not appear and I cannot select it. I don't see any error messages in the UI, nor do I see any error messages in the logs. Any ideas? HELP! :) -- Craig -- You received this message because you a

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

2017-09-06 Thread Craig Silverstein
e the lists of free and used workspaces myself. I do like the fact there's no stashing required, though. :-) craig On Wednesday, September 6, 2017 at 2:26:49 PM UTC-7, Martin d'Anjou wrote: > > The External Workspace Manager Plugin > <https://wiki.jenkins.io/display/JENKINS

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

2017-09-05 Thread Craig Silverstein
r approach to take. craig On Tuesday, September 5, 2017 at 1:21:27 PM UTC-7, ok999 wrote: > > i have ran into this in the past, but we manage to solve this by assigning > a workspace for each build. there is a dsl - ws(). > > Another thing regarding the executor while waitin

Pinning a node to a particular workspace in jenkins pipeline?

2017-09-05 Thread Craig Silverstein
} ``` but I'm trying to free up the executor while waiting for the prompt to be executed (it could be a while). Are there any other ways to solve this problem? What are the best practices here? I feel I must be missing something in how `node` is supposed to be used. craig -- You recei

Re: Parameterized build driven by Jenkinsfile

2017-08-09 Thread Craig Barr
e: 'branch', defaultValue: 'dev', description: '') > ]) > ]) > > /Jacob > > > On 2017-08-09 03:54, Craig Barr wrote: > > Thanks Jacob and Alex! > > Which version of Jenkins does this work for you on? > I've tried with the

Re: Parameterized build driven by Jenkinsfile

2017-08-09 Thread Craig Barr
idden in the "properties" structure. They will be >> applied to the job when it runs, meaning that the first run will not have >> these parameters defined. If you make your Jenkinsfile robust for undefined >> parameters, it should be doable, just remember that they w

Parameterized build driven by Jenkinsfile

2017-08-02 Thread Craig Barr
In Jenkins you can select "This project is parameterized" and add parameters. My question is simple: Can this parameter metadata be populated by an alternative version-controlled source? For example, can I define parameter definitions in my Jenkinsfile so that when I click Build Now it will pop

Pipeline: pass all parameters down to downstream jobs

2017-06-06 Thread Craig Rodrigues
be great. -- Craig -- 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 vi

Blue Ocean and Performance Plugin: How to make logs and test results visible?

2017-03-27 Thread Craig Rodrigues
Plugin need to do in order to make the "Performance Report" visible in the Blue Ocean UI? Thanks. -- Craig -- 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, se

Re: Jenkins and the IBM i Series

2016-11-16 Thread Phil Craig
Hi Allen, I'm working on the same thing but not making much progress. I have the IBMi box defined as a slave node on our Jenkins server and have -Dfile.encoding=ISO8859_1 and -text defined on the slave jar startup config but I still get garbage (presumably ebcdic chars) back in the console log.

Re: Pipeline: Check if build parameter exist

2016-09-29 Thread Craig Rodrigues
r does not exist, as pointed out by Michael Lasevich. -- Craig On Thu, Sep 29, 2016 at 1:37 AM, Sverre Moe wrote: > I can no longer check if a build parameter exist before accessing it > > This has worked previously before I updated Jenkins and the Pipeline > plugins: > def myParam = f

Re: Pipeline: Sending email on failed and fixed builds

2016-06-23 Thread Craig Rodrigues
Yes, step mailer sends mail on fixed builds, but currentBuild.result is null unless you set it. The step mailer depends on currentBuild.result. -- Craig On Thu, Jun 23, 2016 at 12:53 AM, Sverre Moe wrote: > Same solutions I thought about, to put a try-catch surrounding all the > stages

Re: Pipeline: Sending email on failed and fixed builds

2016-06-23 Thread Craig Rodrigues
/master/scripts/build/build-test.groovy#L233 You need to set and check the currentBuild.result value, and do different things based on that. -- Craig On Thu, Jun 23, 2016 at 12:20 AM, Sverre Moe wrote: > One benefit with sending email in pipeline script is better control of > which error

Re: Pipeline: How to cache downloaded (gradle) dependencies using Docker SSH Slave

2016-06-22 Thread Craig Rodrigues
that can make this possible. -- Craig On Wed, Jun 22, 2016 at 4:48 AM, Marco Pas wrote: > Now that we have a first successful build using a Jenkinsfile Pipeline we > are looking on how to cache downloaded dependencies. > Currently when we build our Gradle applications the de

Re: Jenkins Pipeline Job sthrowing Error code 126 when trying to execute a sh command

2016-06-21 Thread Craig Rodrigues
To debug the problem, would you be comforable modifying and rebuilding the Durable Task plugin? You could temporarily comment out the code that removes the script.sh and see what is going on. I had to do that before to debug problems with the durable task plugin. -- Craig On Mon, Jun 20, 2016

Re: Jenkins Pipeline Job sthrowing Error code 126 when trying to execute a sh command

2016-06-20 Thread Craig Rodrigues
py of the durable-ae020333/script.sh that would help debug things. -- Craig On Mon, Jun 20, 2016 at 11:21 AM, Mike Chmielewski < mike.chmielew...@gmail.com> wrote: > [t1] Running shell script > sh: /t1@tmp/durable-ae020333/script.sh: bash: > bad interpreter: No such file or dire

Re: Run pipeline flyweight executors off of master

2016-06-13 Thread Craig Rodrigues
/JENKINS/NodeLabel+Parameter+Plugin ). -- Craig On Mon, Jun 13, 2016 at 2:03 PM, Eli White wrote: > We follow the Jenkins configuration best practices and have no executors > on our master node and force everything to run on our agents. > > We are starting to work with pipeline

Re: Getting started with Pipeline

2016-06-10 Thread Craig Rodrigues
quot;https://github.com/twisted/twisted.git"; def gitBranch if (getBinding().hasVariable("GIT_BRANCH")) { gitBranch = GIT_BRANCH } node { stage "Check out from Git" git branch: "$gitBranch", url: "$gitUrl" stage "Build code" sh &qu

Re: Multiple SCM plugin CANNOT track multiple revisions (i.e. branches or tags) on one repository?

2016-06-10 Thread Craig Rodrigues
', source: 'https://hg.python.org/cpython', subdir: 'directory1' ]) stage "Checkout Python 2.7 source code" checkout([$class: 'MercurialSCM', credentialsId: '', revision: '2.7', source: 'https:

Re: pipeline global library no longer works on latest builds on Windows

2016-06-01 Thread Craig Rodrigues
ion to the list. -- Craig On Wed, Jun 1, 2016 at 3:22 PM, wrote: Currently, I only call one variable/function under the vars directory. If > the pipeline global library mechanism is so unstable, is there anyway I can > call the function but under a different location without changing t

Re: What I miss with Pipeline: Console output from each node

2016-06-01 Thread Craig Rodrigues
execute in parallel, so would be curious as to how it works for you -- Craig On Wed, Jun 1, 2016 at 3:07 AM, Sverre Moe wrote: I have been using Jenkins Multi-configuration. With my move over to > Pipeline scripts and Jenkinsfile I still build on multiple nodes/slaves. > When building

Re: [Blue Ocean] A new user experience project for Jenkins

2016-05-27 Thread Craig Rodrigues
On Fri, May 27, 2016 at 3:12 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > > > On 27 May 2016 at 07:59, Craig Rodrigues wrote: > >> >> Here are some of the pain points I've encountered with Pipeline scripts: >> >>- Other tha

Re: [Blue Ocean] A new user experience project for Jenkins

2016-05-26 Thread Craig Rodrigues
ngs out, but make things harder to figure out what is going on. -- Craig On Thu, May 26, 2016 at 3:21 PM, James Dumay wrote: > > Today we’ve made the source code <https://github.com/cloudbees/blueocean> > available on Github, written a blog post > <https://jenkins.io/blo

Re: Unable to stop pipeline job

2016-05-26 Thread Craig Rodrigues
that right now, but you can monitor that ticket if you wish. -- Craig On Thu, May 26, 2016 at 12:45 AM, Sverre Moe wrote: > Yes I did and it did not do anything. A bit cumbersome if I would have to > enter the build console to cancel again. > > onsdag 25. mai 2016 22.47.02 UTC+

Re: [workflow-plugin] Access to environment variables in flow.groovy

2016-05-24 Thread Craig Rodrigues
Matt, Take a look at: https://groups.google.com/d/msg/jenkinsci-users/P7VMQQuMdsY/bHfBDSn9GgAJ and see if it helps. It took me a long time to figure that out, and it was not obvious to me. -- Craig On Tue, May 24, 2016 at 3:34 PM, Matt Evans wrote: > I have tried many ways to bring varia

Re: Pipeline script for Build Trigger

2016-05-16 Thread Craig Rodrigues
Did you try doing this: https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin#GitHubPlugin-TriggerabuildwhenachangeispushedtoGitHub On Mon, May 16, 2016 at 2:54 PM, John Chandra wrote: > Hi All, > > Is there any way to configure a build trigger using pipeline script in > Jenkinsfile? We sti

Re: Parameterized Build Plugin

2016-05-16 Thread Craig Rodrigues
d this. > > https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build > > > There is no such thing as a "Parameterized Build plugin". Re-read that web page. It gives details for how to configure an existing Jenkins job by clicking on *This build is parameterized*.

Re: Exception when I try to trigger buildflow job from workflow job

2016-05-11 Thread Craig Rodrigues
Hi, Sorry for the delay. This fix is now in build-flow-plugin 0.19. Please give it a try and provide feedback. -- Craig On Sun, Jan 24, 2016 at 1:42 PM, EK wrote: > Hi Craig, > > Looks like issue is solved and now can run build flow job from workflow > job. > Many thanks fo

Re: pipeline post-action in Jenkinsfile ?

2016-05-05 Thread Craig Rodrigues
/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy -- Craig On Thu, May 5, 2016 at 12:24 PM, Mike Caspar wrote: > try { > step 1 > step 2 > step 3 > step 4 > step 4 > } > catch > { > task {send email of build status} > } > finally > { > task {se

Re: general Pipeline help

2016-05-04 Thread Craig Rodrigues
27;t have a return value which is useful. I think the WindowsBatchScript step also doesn't have a useful return value. I think what you can try doing, is see if the bat step throws an exception if the underlying Windows command fails. If that is the case, you can try catching exceptions, like h

Re: Jenkins Pipeline: How to fail on junit results

2016-04-29 Thread Craig Rodrigues
currentBuild.result to FAILURE, and then re-throw the exception. It took me a long time to figure it out. :) -- Craig On Thu, Apr 7, 2016 at 1:17 AM, Frank Hask wrote: > Hi all, > > i am creating build pipeline and i am stuck at the integration tests stage. > > This stage generates junit

Re: email-ext as build step

2016-04-28 Thread Craig Rodrigues
Niksan, Take a look at this Pipeline script I wrote: https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy#L233 which sends e-mail as a post-build step in case of failures. -- Craig On Thu, Apr 28, 2016 at 7:44 AM, 'Niksan' via Jenkins Users < je

Re: Pipelines, iterating maps and more headaches

2016-04-27 Thread Craig Rodrigues
scripts, especially with respect to global variables. I am new to Groovy, and it took me a long time to understand what is going on with Pipeline scripts, before I started digging into the code to figure things out. -- Craig On Tue, Apr 26, 2016 at 4:18 PM, Norbert Lange wrote: > > 4) Are var

Re: Trigger arbitrary build/post-build steps from pipeline

2016-04-25 Thread Craig Rodrigues
>From a pipeline, You cannot invoke methods in other Jenkins plugins unless those plugins have been modified to support pipelines. See: https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md https://github.com/jenkinsci/pipeline-plugin/blob/master/DEVGUIDE.md -- Craig

Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Craig Rodrigues
/robot-plugin/pull/12 For Jacoco, you should be able to figure out what to use by going to the configuration page for your Jenkins job. Then click on: - *Snippet Generator* - *Step: General Build Step* - then toggle the build step until you see something for Jacoco -- Craig On Mon, Apr 11

Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Craig Rodrigues
What results display are you referring to? I have a Pipeline job which uses JUnitArchiver and see the test results graphs: https://jenkins.freebsd.org/job/FreeBSD_HEAD/ -- Craig On Mon, Apr 11, 2016 at 10:29 AM, Matt Friedman wrote: > Thanks Craig, > > Actually noticed that and tri

Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Craig Rodrigues
Hi, There is an example for using JUnitArchiver in the tutorial: https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#recording-test-results-and-artifacts -- Craig On Mon, Apr 11, 2016 at 6:15 AM, Matt Friedman wrote: Thanks much David > > I found the pages you refer

Re: Plugin checkUpdates not working, can't upgrade plugins

2016-04-08 Thread Craig Rodrigues
ttps://jenkins.freebsd.org/pluginManager/checkUpdates>"* So it looks like 2 months ago, the update-center.json became big enough to trigger this problem. Setting the *client_max_body_size* value as specified in https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+behind+an+NGinX+reverse+pro

Plugin checkUpdates not working, can't upgrade plugins

2016-04-08 Thread Craig Rodrigues
ins-ci.org/current/update-center.json without a problem, so there don't seem to be any network connectivity issues to the Jenkins updates site. Any ideas what is wrong? Thanks. -- Craig -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: Storing job configurations with source code in VCS

2016-04-07 Thread Craig Rodrigues
Hi, Take a look at the SCM Sync configuration plugin https://wiki.jenkins-ci.org/display/JENKINS/SCM+Sync+configuration+plugin It allows users to modify their job configuration, but keeps track of the changes in Git or Subversion. -- Craig On Wed, Mar 9, 2016 at 8:04 PM, Patrick van der Velde

Re: Setting global variables with cps-global-libs scripts

2016-02-03 Thread Craig Rodrigues
cho "emailDevOpsTeam: ${emailDevOpsTeam}" } and this in your Jenkinsfile node { globals.beginBuildNotificationTestEmail()} I'm new to groovy, so if there is a better way to do it, let me know. However, this example does work. -- Craig On Wed, Feb 3, 2016 at 3:45 PM, Tom

Re: Avoiding job failure email notification when an old job is cancelled by a newer job when entering a throttled stage

2016-02-03 Thread Craig Rodrigues
't know if there is a better way to do it, but that's what I got to work. -- Craig On Wed, Feb 3, 2016 at 8:50 AM, Meiteimacha999 wrote: i have my workflow set up like so. This sends an email notification when a > job fails. > > > > But the issue, is i am also gett

Re: Development environment for Pipeline (aka workflow)

2016-02-03 Thread Craig Rodrigues
to use *Pipeline script from SCM*. (4) I often have to re-run the script multiple times, and approve functions in *In-process Script Approval* do to the security sandbox. -- Craig On Tue, Feb 2, 2016 at 2:14 PM, Tom Kierzkowski < thomas.kierzkow...@gmail.com> wrote: Hello! I

Re: create custom workspace for each execution of a job

2016-02-01 Thread Craig Rodrigues
b.com/jenkinsci/workflow-plugin/blob/master/aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/DeleteDirStepTest.java -- Craig On Monday, February 1, 2016, niristotle okram wrote: > > i see an option "deleteDir()", can i use something like this (at the

Re: How can I POST data to a remote service in Jenkins pipeline/workflow?

2016-02-01 Thread Craig Rodrigues
Yes, you would need to install HTTPBuilder. You can decide if you want to install additional groovy libraries, or if you prefer switch to a scripting language of your choice, which you can call from inside a Jenkins job in order to access a REST service. -- Craig On Sun, Jan 31, 2016 at 2:49 PM

Re: How can I POST data to a remote service in Jenkins pipeline/workflow?

2016-01-31 Thread Craig Rodrigues
do it: https://www.google.com/search?q=groovy+rest+api If you want to use C#, you can look at using the restsharp library: https://www.google.com/search?q=c+sharp+rest+api -- Craig On Sun, Jan 31, 2016 at 9:20 AM, Scott Richmond wrote: > I require the ability to HTTP POST data to a remote ser

Re: [workflow] Problems sending out e-mails on build failures

2016-01-30 Thread Craig Rodrigues
entBuild.result: ${currentBuild.result}"} It would be nice if the Mailer step printed out a warning in the log if currentBuild.result is null. -- Craig On Mon, Jan 25, 2016 at 4:42 PM, Craig Rodrigues wrote: > This build which failed: > https://jenkins.freebsd.org/job/FreeBSD

Re: No workspace variable during workflow / pipeline build?

2016-01-27 Thread Craig Rodrigues
Hi, You could also work around this by doing: node() { workspace = pwd() // rest of code here } See: https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy for an example. -- Craig On Wed, Jan 27, 2016 at 10:49 AM, Eric Pyle wrote: > Workaround: > >

Re: pipelines and IRC

2016-01-25 Thread Craig Rodrigues
for now and just use netcat to send messages to IRC. > > The example you gave uses HTTP web hooks exposed by Slack. That example isn't useful at all for IRC. It would be better to modify the Jenkins IRC plugin to by pipeline/workflow compatible. -- Craig -- You received this message

Re: [workflow] Problems sending out e-mails on build failures

2016-01-25 Thread Craig Rodrigues
id not send out mail on failure. What is going on? The blog post you referred to is OK for simply sending out e-mail, but I want to use the logic in the Mailer class, because it has a lot of good stuff for sending out e-mails on failures, and when failures turn into successes. Thanks. -- Craig

Re: [Pipeline/Workflow] API for "parallel" metadata

2016-01-25 Thread Craig Rodrigues
. -- Craig On Mon, Jan 25, 2016 at 2:46 PM, Yotam Shapira wrote: > Hi, > > I have a parallel workflow that I want to extract some metadata from. For > example, for the following workflow: > parallel { > "a": node ('...') { > ... > }, >

Re: pipelines and IRC

2016-01-25 Thread Craig Rodrigues
/workflow-plugin-tutorial-writing-a-step-impl/ That would be the best place to start. -- Craig On Mon, Jan 25, 2016 at 3:06 AM, Erwan de Ferrières < erwan.de-ferrie...@whaller.com> wrote: > hi, > > I'm using the IRC plugin ( > https://wiki.jenkins-ci.org/display/JEN

Re: Exception when I try to trigger buildflow job from workflow job

2016-01-24 Thread Craig Rodrigues
Hi, It looks like you are running under Windows. I'm not sure if the tests run under Windows. Try: mvn -DskipTests install -- Craig On Jan 24, 2016 4:05 AM, "EK" wrote: > > Hi , > I tired to follow your instruction to build the buildflow plugin and and got the followi

Re: Exception when I try to trigger buildflow job from workflow job

2016-01-23 Thread Craig Rodrigues
-- Craig On Sat, Jan 23, 2016 at 12:49 PM, Craig Rodrigues wrote: > Hi, > > Thanks for posting your sample scripts. > I was able to reproduce your problem. > > It looks like the Build Flow plugin needs to change to use the Run class, > instead of AbstractBuild > in ord

Re: Exception when I try to trigger buildflow job from workflow job

2016-01-23 Thread Craig Rodrigues
Hi, Thanks for posting your sample scripts. I was able to reproduce your problem. It looks like the Build Flow plugin needs to change to use the Run class, instead of AbstractBuild in order to be compatible with workflow/pipeline plugin. -- Craig On Sat, Jan 23, 2016 at 12:22 AM, EK wrote

Re: [workflow plugin] use case question

2016-01-21 Thread Craig Rodrigues
Hi, Node Label Parameter Plugin version 1.7.1 and higher has my fix and now works with Workflow. -- Craig On Thursday, January 21, 2016, Eric Pyle wrote: > I think you would need the NodeLabel Parameter Plugin. And as Craig > Rodrigues recently posted, that plugin is not yet compatibl

Re: Jenkins pipeline - Can Workflow jobs be parameterized?

2016-01-16 Thread Craig Rodrigues
reebsd.org/pipermail/freebsd-testing/2016-January/001285.html -- Craig On Saturday, January 16, 2016, Scott Richmond wrote: > I have created a simple Workflow job and want to be able to trigger it via > URL with some parameters. However using the Parameterized job plugin > doesn't a

Re: Workflow (pipeline) visual editor

2016-01-13 Thread Craig Rodrigues
d with that plugin here: https://twitter.com/rodrigc6/status/687215217646907392 Very nice! The ability to see a graphical view of the workflow and the code at the same time is very useful. -- Craig -- You received this message because you are subscribed to the Google Groups "Jenkins Users

Re: Workflow (pipeline) visual editor

2016-01-11 Thread Craig Rodrigues
on "modern" Javascript components becoming more integrated with the Jenkins ecosystem! -- Craig On Mon, Dec 21, 2015 at 2:18 AM, Michael Neale wrote: > (I posted this to jenkins-dev last week, but thought some users here may > be interested). > > An experimental graphical edi

Re: [workflow] SCM polling not working if build never done before?

2016-01-02 Thread Craig Rodrigues
that? How can I configure this behavior? -- Craig -- 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 vi

[workflow] SCM polling not working if build never done before?

2016-01-02 Thread Craig Rodrigues
://jenkins.freebsd.org/job/FreeBSD_HEAD/scmPollLog/ In the log: *Started on Jan 2, 2016 6:28:36 PM no previous build to compare to Done. Took 0 ms No changes * If no previous build has been done, shouldn't SCM polling trigger a new build instead of bailing? -- Craig -- You received this me

[workflow] how to tell if build parameter is set?

2015-12-29 Thread Craig Rodrigues
) if (mybool) { echo DID_NOT_DEFINE_THIS echo getProperty("DID_NOT_DEFINE_THIS") } else { echo "DID_NOT_DEFINE_THIS is not defined" }} Is that the best way to do it, or is there a better way? -- Craig -- You received this message because you are subscribed

Re: [workflow-plugin] RFC: workflow script to Build/Boot/Test FreeBSD

2015-12-28 Thread Craig Rodrigues
plugin/blob/master/basic-steps/CORE-STEPS.md#plain-catch-blocks This text: *For that, check if currentBuild.previousBuild exists, what its .result is, etc.* needs to be fleshed out with a proper example for the "mail" DSL function. -- Craig On Mon, Dec 28, 2015 at 7:31 PM, Michael N

Re: [workflow-plugin] Example using NodeLabel Parameter plugin?

2015-12-27 Thread Craig Rodrigues
Hi, It turns out that the NodeLabel Parameter plugin doesn't work with the workflow plugin: https://issues.jenkins-ci.org/browse/JENKINS-32209 I submitted this fix: https://github.com/jenkinsci/nodelabelparameter-plugin/pull/10 -- Craig On Tue, Dec 22, 2015 at 4:41 PM, Craig Rodrigues

[workflow-plugin] RFC: workflow script to Build/Boot/Test FreeBSD

2015-12-22 Thread Craig Rodrigues
is more convenient. Thanks. -- Craig -- 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 dis

[workflow-plugin] Example using NodeLabel Parameter plugin?

2015-12-22 Thread Craig Rodrigues
Hi, Can someone provide some workflow groovy which takes a "Node Parameter" from the NodeLabel Parameter plugin, and then uses it in a workflow script? I couldn't figure out how to do it, and kept getting null exceptions when I tried to use the parameter. -- Craig -- You receiv

Re: [workflow-plugin] Warnings plugin not parsing console?

2015-12-22 Thread Craig Rodrigues
#x27;, unHealthy: '']) } It is not ideal, but it seems to work for me. Is there a way to flush the console output before invoking the warnings plugin? That would be "better" than a sleep. -- Craig On Tue, Dec 22, 2015 at 9:37 AM, Ullrich Hafner wrote: Hmm, seems that t

[workflow-plugin] Warnings plugin not parsing console?

2015-12-22 Thread Craig Rodrigues
y: '', includePattern: '', messagesPattern: '', unHealthy: '']) } This code example triggers warnings with the clang compiler, which I can see in the log, but the warnings plugin is reporting 0 warnings. Any ideas how I can fix this?

Re: Official Jenkins Training

2015-12-02 Thread Craig Rodrigues
. Take that list of topics to the different vendors offering training, and ask them if they cover your topics in their training. -- Craig On Wed, Dec 2, 2015 at 12:10 AM, Jorge Peña Cotarelo wrote: > Hello from Barcelona, > > I am an experienced build/release engineer

Re: [workflow-plugin] Sample script for deleting a workflow workspace?

2015-10-01 Thread Craig Rodrigues
the functions? I don't know the best approach, but since you have a doc writer helping, maybe they can suggest a good approach. -- Craig -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop recei

Re: [workflow-plugin] Sample script for deleting a workflow workspace?

2015-09-29 Thread Craig Rodrigues
from a workflow script, that they be documented in TUTORIAL.md as well. -- Craig On Mon, Sep 28, 2015 at 12:59 PM, Oleg Nenashev wrote: > If you specify a boolean parameter, the Workflow code would be... > > node { >if (clean_dir) { >deleteDir() >} >

[workflow-plugin] Sample script for deleting a workflow workspace?

2015-09-10 Thread Craig Rodrigues
o 0. (3) If "do_clean" is set to 1, then logic in the workflow will be triggered which cleans out the files, otherwise if "do_clean" is set to 0, then no cleaning occurs. If this is possible, could someone post a code snippet of a workflow which does this? Thanks. -- Craig --

Re: Installation error in Jenkins 1.617

2015-06-08 Thread Craig Rodrigues
Hi, I advise you to: (1) Install Homebrew: http://brew.sh/ (2) Install Jenkins using Homebrew: http://brewformulas.org/Jenkins -- Craig On Mon, Jun 8, 2015 at 2:48 PM, Nisarg Raval wrote: Hey, > I am trying to install Jenkins 1.617 on Mac OS version-10.10.3. > > -- You rece

Re: [workflow] - First failing Newbie (dir) steps

2015-06-01 Thread Craig Rodrigues
/JENKINS-28382 "workflow plugin: no option to Wipe Out Current Workspace". That bug got marked as a duplicate. There are definitely issues with respect to cleaning up workspaces used by the workflow plugin. -- Craig On Wed, May 27, 2015 at 8:23 AM, Markus "Shorty" Uckel

Unstoppable Jenkins job?

2015-05-26 Thread Craig Rodrigues
, but that didn't stop it. An hints on how I can diagnose why this is "stuck"? I'd rather not restart the Jenkins server to fix this -- Craig -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from

Re: Workflow 1.5 problems

2015-05-13 Thread Craig Rodrigues
For (1) I have created https://issues.jenkins-ci.org/browse/JENKINS-28382 For (2), I hope that JENKINS-25550 gets fixed. I tried Workflow 1.6, and encountered the same problem. I've found the Workflow plugin to be unusable due to this issue, unfortunately. -- Craig On Thu, Apr 23, 2015

Workflow 1.5 problems

2015-04-13 Thread Craig Rodrigues
ht now, because I restarted Jenkins, but I have seen it a few times. Are these known problems? Are there any workarounds? -- Craig -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receivin

Re: confirming the build before starting

2014-11-12 Thread Craig Phillips
What exactly didn't work about the solution you got from stack overflow? Are you creating a custom web service for submitting the builds from, or perhaps hosting an HTML page on the Jenkins server for this? -- You received this message because you are subscribed to the Google Groups "Jenkins

  1   2   >