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 > Datum: 12/01/2017 22:53 > Betreff: Running SQL queries fro

[Declarative Pipeline] Cant use 'path' as parameter name

2017-01-12 Thread Dan Tran
The below pipe will work at first checkout, after that it will fait where jenkins git not able to checkout. looks like 'path' interfere with local env path? pipeline { parameters { string(defaultValue: 'cs/xx', description: 'Path to git path - ex cs/cbs', name: 'path') }

Scripting installation of JDK

2017-01-12 Thread Damien Caro
Hello, I'm trying to automate the installation of Jenkins. I have a VM image that has Jenkins already installed but I want to automate the next step of the installation: JDK + Oracle password and Gradle. Has anyone already done something similar and how ? I am considering either a shell script

Re: help on starting up Jenkins on Suse Linux

2017-01-12 Thread Jeffrey Cañas
Do you have JAVA installed on your server? On Friday, January 6, 2017 at 8:02:33 PM UTC+8, Vijai Meda wrote: > > Thanks Mark. > I have downloaded OpenSuSe package and installed. > Now it simply says failed. > > hyslnx20:/opt/home/vm185012/Jenkins # /etc/init.d/jenkins start > Starting > Jenkins

Re: Plugin Integration Testing with Downstream Jobs

2017-01-12 Thread Rayees Namathponnan
there is plugin called conditional build plugin, please check this, it may help you > On Jan 12, 2017, at 1:58 PM, Daniel Beck wrote: > > >> On 12.01.2017, at 21:03, Eric Zounes wrote: >> >> I'd really like to know if there's a blessed way for the test to block until >> all downstream j

Re: Plugin Integration Testing with Downstream Jobs

2017-01-12 Thread Daniel Beck
> On 12.01.2017, at 21:03, Eric Zounes wrote: > > I'd really like to know if there's a blessed way for the test to block until > all downstream jobs are completed or if I should take a different approach > all together. Thanks. More of a developers list question. JenkinsRule#waitUntilNoActiv

Running SQL queries from a pipeline script?

2017-01-12 Thread Peter McNab
Has anyone got a working solution for running SQL queries from a pipeline script (specifically MySQL?) Pete -- 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

Declarative Pipeline - Pipeline Shared Library

2017-01-12 Thread 'Daniel' via Jenkins Users
Hi together, as similar question has already been asked regarding stages, but this and is about the full pipeline definition. https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!searchin/jenkinsci-users/declarative|sort:relevance/jenkinsci-users/fiP1Qi7wusY/EC9fMKFGBgAJ Is it p

Way to trigger another build on "Keep this build forever"?

2017-01-12 Thread Greg Smith
Hi, I would like to create a build that is triggered whenever a user clicks "keep this build forever" within any build. I want to run a build that backs that those artifacts up, pushes it to another file server. Is there any way I can create a build that is triggered on such an event? Cheers

Re: problem with jenkins not able to access git

2017-01-12 Thread Phil Swenson
Actually I don't think it has anything to do with git... i tried downgrading my git plugin and got this error: - Failed to resolve host name updates.jenkins-ci.org. Perhaps you need to configure HTTP proxy? On Thurs

Having trouble with Jenkins 2 checking out code in a PR under github org

2017-01-12 Thread nwalke
I have a pull request that looks like this with a Jenkinsfile in it:

problem with jenkins not able to access git

2017-01-12 Thread Phil Swenson
I have a new jenkins server I'm trying to stand up 2.4 with all latest plugins... it works for a day and then starts giving me errors like this: Started by timer > git rev-parse --is-inside-work-tree # timeout=10 Setting origin to g...@bitbucket.org:myco/ace-esni-datastore.git > git config remo

Plugin Integration Testing with Downstream Jobs

2017-01-12 Thread Eric Zounes
Hey all, I'm currently writing a plugin where I need to write integration tests which rely on build trigger behavior. For some context, I'm using the JenkinsRule object for testing. Say I have job A and job B. Job B is a downstream job from job A. I've created a BuildTrigger in my test which

Re: Pipeline Multibranch and Security questions

2017-01-12 Thread Daniel Beck
> On 12.01.2017, at 15:03, Kristian wrote: > > Sorry, this was the false link. This is the correct one: > https://groups.google.com/forum/#!topic/jenkinsci-users/1mtr7Av4zJI IIRC archiving artifacts follows symlinks, so you can just create symbolic links inside the workspace to the actual arti

Re: Pipeline Multibranch and Security questions

2017-01-12 Thread Daniel Beck
> On 12.01.2017, at 17:01, 'Björn Pedersen' via Jenkins Users > wrote: > > manager.hudson Specific to unsandboxed Groovy Postbuild, doesn't work in Pipeline. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group an

Re: Pipeline Multibranch and Security questions

2017-01-12 Thread 'Björn Pedersen' via Jenkins Users
try: echo manager.hudson.getNode(NODE_NAME).getRootPath().toString() to get the current nodes rootPath (or pass a suitable nodename). Björn Am Donnerstag, 12. Januar 2017 15:03:12 UTC+1 schrieb Kristian X: > > Sorry, this was the false link. This is the correct one: > https://groups.googl

How to set Jenkins environment variables containing spaces?

2017-01-12 Thread nada abdelkader
Hello, I have some env variables to configure (Jenkins->manage Jenkins->configure System -> Global properties -> Environment variables) in Jenkins (1.632) which take a list of values. I know that I have to list the values in the value field but what I need to know is if one of these values con

Re: Pipeline Multibranch and Security questions

2017-01-12 Thread Kristian
Sorry, this was the false link. This is the correct one: https://groups.google.com/forum/#!topic/jenkinsci-users/1mtr7Av4zJI 2017-01-12 15:00 GMT+01:00 Kristian : > The function comes originally from this question: > https://groups.google.com/forum/#!topic/jenkinsci-users/L9yP2df9Fz4 > > > 2017-01

Re: Pipeline Multibranch and Security questions

2017-01-12 Thread Kristian
The function comes originally from this question: https://groups.google.com/forum/#!topic/jenkinsci-users/L9yP2df9Fz4 2017-01-12 14:50 GMT+01:00 Daniel Beck : > What are you trying to accomplish? Pipeline is not intended to perform system > management tasks. > >> On 12.01.2017, at 14:30, Kristia

Re: Issues with role-strategy plugin on 2.32.1

2017-01-12 Thread Daniel Beck
> On 11.01.2017, at 23:10, Francisca Munhoz wrote: > > Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: > com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy > > You're using the role strategy plugin and it isn't installed, disabled, or failed

Re: Pipeline Multibranch and Security questions

2017-01-12 Thread Daniel Beck
What are you trying to accomplish? Pipeline is not intended to perform system management tasks. > On 12.01.2017, at 14:30, Kristian wrote: > > Hi all, > > I am new to Pipeline and Multibranch. I just wrote a small test > pipeline script for a project of me and started it in a Multibranch > pro

Pipeline Multibranch and Security questions

2017-01-12 Thread Kristian
Hi all, I am new to Pipeline and Multibranch. I just wrote a small test pipeline script for a project of me and started it in a Multibranch project. Suddenly I got an error message like this: > org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts > not permitted to use s

Re: JDK Installer Groovy script

2017-01-12 Thread Victor Martinez
I've just found those variables are private: - https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tools/JDKInstaller.java#L739-L741 So no way to set them directly unless running the method doPostCredential import jenkins.model.* import hudson.model.* def inst = Jen

Re: Some questions on ArtifactArchiver for a pipeline script

2017-01-12 Thread Kristian
Thank you for your answer. This worked very well! 2017-01-11 16:38 GMT+01:00 : > > Use: > println(pwd()); > that should help you determine current working directory. > > If the /home/user/project is the current working directory where the project > is checkout and you are looking at /home/user/ar

Re: How to trigger Jenkins build with parameters from Gitlab webhook?

2017-01-12 Thread Mark Allison
I don't think that's correct because when I invoke the job manually and set parameters, then they show up in the echo command. However, when I use the webhook from gitlab, the parameter values don't show up. On Wednesday, 11 January 2017 23:23:09 UTC, Indra Gunawan (ingunawa) wrote: > > It shoul

Re: [Declarative Pipeline] params.xxx does not work for git

2017-01-12 Thread Baptiste Mathus
Nitpicking, I would argue it is not a "restriction" but a feature. BTW this is a common behaviour: exactly the same exists in shell for instance, and I'm sure in other languages. A feature because it's nice to not always have to add antislashes for parameters/variables you don't want resolved by t