Antwort: Running SQL queries from a pipeline script?

2017-01-12 Thread Lars . Meynberg
We've done that against OracleDB but with a plain shell script. I'm not aware about a SQL Jenkins plugin with proper pipeline step. jenkinsci-users@googlegroups.com wrote on 12/01/2017 22:53:37: > Von: Peter McNab > An: Jenkins Users >

Re: Pipeline: How to access Jenkins build information from pipeline?

2016-08-23 Thread Lars Meynberg
Thanks, that was the hint in the right direction! Am Montag, 22. August 2016 13:21:11 UTC+2 schrieb Lars Meynberg: > > Hi guys, > > I'd like to access some information about the job and its builds. I've > found this example from the cloudbees repo: > > https://github.

Pipeline: How to access Jenkins build information from pipeline?

2016-08-22 Thread Lars Meynberg
Hi guys, I'd like to access some information about the job and its builds. I've found this example from the cloudbees repo: https://github.com/cloudbees/jenkins-scripts/blob/master/cancel-builds-same-job.groovy But when I try to access Jenkins.instance I get the error

Antwort: Jenkins 2: where did "Restrict where this job can be run" go?

2016-06-09 Thread Lars . Meynberg
This is now handled in each node step: https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#node-allocate-node label Computer name, label name, or any other label expression like linux && 64bit to restrict where this step builds. May be left blank, in which case any available

Re: How to use classes in pipeline script?

2016-06-08 Thread Lars Meynberg
I'm aware that there is the possibility of the workflow-cps-global-lib-plugin but I like to now if it's possible without it or is that another groovy restriction for pipeline scripts like Closures? Am Mittwoch, 8. Juni 2016 12:08:37 UTC+2 schrieb Lars Meynberg: > > We want to grou

Re: Multi-Branch project with svn externals

2016-05-31 Thread Lars Meynberg
I've created a BUG now: https://issues.jenkins-ci.org/browse/JENKINS-35227 Am Montag, 2. Mai 2016 16:11:51 UTC+2 schrieb Lars Meynberg: > > We have setup a multi-branch project with a Jenkinsfile. The detection is > working fine but we're using external links for some stuff and everytim

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

2016-05-27 Thread Lars . Meynberg
Sorry I meant will NOT disappear Von:Michael Neale An: Jenkins Users , Kopie: lars.meynb...@edict.de Datum: 27.05.2016 10:02 Betreff:Re: Re: [Blue Ocean] A new user experience project for Jenkins Gesendet von:

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

2016-05-27 Thread Lars . Meynberg
Seems to be cool stuff. I tried to install the plugin on our Jenkins as where switching to pipeline building at the moment but couldnt find the plugin in the update center. But the readme of the describes it more as a standalone installation: Running Blue Ocean $ cd blueocean-plugin $ mvn

Antwort: Re: Unable to stop pipeline job

2016-05-26 Thread Lars . Meynberg
I had also the same problem and fix that for now via the ScriptConsole of Jenkins with following command: Jenkins.instance.getItemByFullName("jobName").getBuildByNumber(9 ).finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build")); Von:Sverre Moe

Re: Pipeline Plugin: Multiple steps for ArtifactArchiver and JUnitResultArchiver in one pipeline possible?

2016-05-20 Thread Lars Meynberg
workspace anymore even all was in the same node step. Am Mittwoch, 18. Mai 2016 15:14:55 UTC+2 schrieb Lars Meynberg: > > We're trying to switch our Build Pipeline from the classic way (Multiple > Jobs) to the new pipeline-as-code approach. > In the past we've chained some jobs together.

Antwort: Re: pipeline: Retrieve exit Code from 'sh' step and perform logic

2016-05-20 Thread Lars . Meynberg
Good to know that there is some kind of issue to make that more handy. My first thought was to catch the exception that occurs on exit code non zero. Von:John Engelman An: Jenkins Users , Datum: 20.05.2016 00:29 Betreff:

Pipeline Plugin: Multiple steps for ArtifactArchiver and JUnitResultArchiver in one pipeline possible?

2016-05-18 Thread Lars Meynberg
We're trying to switch our Build Pipeline from the classic way (Multiple Jobs) to the new pipeline-as-code approach. In the past we've chained some jobs together. We had some parallel test jobs and each test has produced its own test results. These results were copied to the master job and