Not able to pulll the code from GitLab using Jenkins

2017-02-02 Thread Sivakrishna Yarra
Hello Guys, I am using Jenkins as CI, i had created a job which will pull the code from GitLab. For this i had configured like this. Under SourceCode Management i had selected Git. I had porvided my Git *Repository URL* as like this " *http://192.168.1.36/Enliven-Product/EnlivenService.git*;.

Re: Pipeline problem after upgrading

2017-02-02 Thread Sam K
Yeah, we need to see the code to tell what's wrong with the syntax. Which version were you before the upgrade? And is it now at the latest as of this writing? On Thursday, February 2, 2017 at 4:27:42 PM UTC-8, Guy Knights wrote: > > I upgraded some of my pipeline plugins (there were some

Problem with build step - Windows Batch Command

2017-02-02 Thread ssitaramasastri
Hi I have setup Jenkins in Docker and am able to run some ANT script, I now have to run some 'windows batch script'. I gave a basic command echo "Hello" but I am getting the following error... I believe it is expecting cmd.exe to be in my work space??? Can some one please help me resolve this

Pipeline problem after upgrading

2017-02-02 Thread Guy Knights
I upgraded some of my pipeline plugins (there were some groovy module upgrades I believe, unfortunately I don't have a list of what was upgraded) and suddenly my build pipelines no longer work and are throwing the following error: Running on master in /var/jenkins_home/jobs/Project1/jobs/API -

Help with groovy syntax

2017-02-02 Thread kurrent93
Hello I had a jenkinsfile which worked perfectly, but after updating it no longer works. *Old Jenkinsfile* #!/usr/bin/groovy @Library('github.com/fabric8io/fabric8-pipeline-library@master') def failIfNoTests = "" try { failIfNoTests = ITEST_FAIL_IF_NO_TEST } catch (Throwable e) {

Build periodically with Parameters support

2017-02-02 Thread Sam K
I could not find this plugin in the compatibility page here: https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md Is there a way I can schedule the same job with different parameters? I am using a non-declarative job just to kick off my parameterized declarative pipeline

Re: Jenkins2 pipeline - Global methods in shared-library fails when invoked

2017-02-02 Thread David Karr
On Thursday, February 2, 2017 at 2:13:36 PM UTC-8, Daniel Beck wrote: > > > > On 02.02.2017, at 17:27, David Karr > wrote: > > > > Wow, and the documentation page doesn't even MENTION this fact? I'm > reading it now, and there's that underscore, completely without any

How to get ip(public or private of one EC2 node and pass it to second

2017-02-02 Thread Moshe Zuisman
I am quite a new bee in jenkins. So - it can happen , that I ask something that already was asked. While - I did not find anything on those or another forums or documentation. I have 2 jobs on my jenkins server. One creates node (EC2 amazon Windows machine) with application server installed

Pipeline with build parameters creation

2017-02-02 Thread garylau . work
Hello, I'm currently dynamically creating several jobs with different build parameters. I want to combine these jobs into a single pipeline and have the pipeline run these jobs in parallel. Which plugins would be recommended for this task? Additionally, I need to be able to retrieve the

Re: User not passing to job history if submitted by URL?

2017-02-02 Thread Daniel Beck
> On 02.02.2017, at 20:26, Don Alcombright wrote: > > Any thoughts on what I am doing wrong? You forgot to include the interesting parts of the URL you're using. Strip out job names or whatever, but leave the rest intact. Also, what does Jenkins tell you is the

Re: Using pipeline shared library is failing with "I don't handle protocol 'git clone ssh'"

2017-02-02 Thread David Karr
On Thursday, February 2, 2017 at 9:15:57 AM UTC-8, David Karr wrote: > > In Jenkins 2.19.2, I now have three different pipeline jobs using a > variation of the same script components, including a bunch of methods that > I've pasted into each script. I'm storing each script in git, but I think

Re: Using pipeline shared library is failing with "I don't handle protocol 'git clone ssh'"

2017-02-02 Thread Daniel Beck
> On 02.02.2017, at 18:15, David Karr wrote: > > What might I be doing wrong here? Are you including 'git clone' wherever you are pasting the URL to the repo? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Re: Jenkins2 pipeline - Global methods in shared-library fails when invoked

2017-02-02 Thread Daniel Beck
> On 02.02.2017, at 17:27, David Karr wrote: > > Wow, and the documentation page doesn't even MENTION this fact? I'm reading > it now, and there's that underscore, completely without any statement like > YES, THIS REALLY NEEDS TO BE HERE. Seriously? Could you

Problem using Github Credentials in Maven Release

2017-02-02 Thread jermccormick
Hi, I'm having trouble supplying my github credentials to a release build for a Maven project using the Jenkins credentials plugin. When I use the form to supply the SCM credentials for a specific release, it works fine. But it ends up putting my github password in the console log! So I

Re: cannot create - Directory nonexistent

2017-02-02 Thread kurrent93
I 'described' the pod and see: Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message - - - -- --- 10m 10m 1 {default-scheduler } Normal Scheduled Successfully assigned buildpod-34a7d18b-a756-4ce8-a851-cf3221884432 to

cannot create - Directory nonexistent

2017-02-02 Thread kurrent93
Hi I'm trying to run this jenkinsfile, but get the below error. Does anyone know what the problem is? Jenkinfile #!/usr/bin/groovy @Library('github.com/fabric8io/fabric8-pipeline-library@master') def failIfNoTests = "" try { failIfNoTests = ITEST_FAIL_IF_NO_TEST } catch (Throwable e) {

User not passing to job history if submitted by URL?

2017-02-02 Thread Don Alcombright
We have an internal build page setup that passes builds off via URL. This method works fine but for some reason, although the job passes fine with http://username:apitoken@jenkins-server the build history doesn't show the user that kicked it off. If i submit via the UI of Jenkins it does.

Using pipeline shared library is failing with "I don't handle protocol 'git clone ssh'"

2017-02-02 Thread David Karr
In Jenkins 2.19.2, I now have three different pipeline jobs using a variation of the same script components, including a bunch of methods that I've pasted into each script. I'm storing each script in git, but I think it's now time to define a shared library so I can remove the duplicated

Re: Jenkins2 pipeline - Global methods in shared-library fails when invoked

2017-02-02 Thread David Karr
On Thursday, February 2, 2017 at 3:30:05 AM UTC-8, R Tyler Croy wrote: > > (replies inline) > > On Thu, 02 Feb 2017, Tor Christian Solev?gseide wrote: > > > I was finally able to solve this myself. The problem was how I > referenced > > the shared library. Apparently, I need to add the

Re: How do I perform if/else operations in a jenkins workflow build?

2017-02-02 Thread Slide
The best way to find out is to try it. We're willing to help if you get stuck, but you also need to try things yourself and figure things out. We're not going to write your script for you. On Thu, Feb 2, 2017 at 7:34 AM siva varma Datla wrote: > So you say this should

Re: How do I perform if/else operations in a jenkins workflow build?

2017-02-02 Thread siva varma Datla
So you say this should work?? node { if (result.toString() != "SUCCESS") { notifyFailure() } else { notifySuccessful() } } On Thursday, February 2, 2017 at 9:12:48 AM UTC-5, slide wrote: > > You are checking for != "SUCCESS" and then doing your success > notification. You probably want

Re: How do I perform if/else operations in a jenkins workflow build?

2017-02-02 Thread Slide
You are checking for != "SUCCESS" and then doing your success notification. You probably want to swap the stuff inside the blocks. On Thu, Feb 2, 2017, 07:08 siva varma Datla wrote: > I need an email notification for my job status I have groovy syntax for if > condition

How do I perform if/else operations in a jenkins workflow build?

2017-02-02 Thread siva varma Datla
I need an email notification for my job status I have groovy syntax for if condition please let me know if I am doing it wrong. Using this syntax its only pushing notification when ever my build is successful its not sending any kind of notifications for failed build. node { if

Re: $JENKINS_HOME vs. $WORKSPACE on a slave (agent) node vs master node

2017-02-02 Thread Ioannis Moutsatsos
I believe that you can define a JENKINS_HOME environment variable on the slave node. Jobs running there will use that instead of the JAVA_HOME of the master. On Wednesday, February 1, 2017 at 4:48:52 PM UTC-5, Bruce Epstein wrote: > > Hi Everyone - > > I have one master and one slave node. > >

Re: Jenkins2 pipeline - Global methods in shared-library fails when invoked

2017-02-02 Thread R. Tyler Croy
(replies inline) On Thu, 02 Feb 2017, Tor Christian Solev?gseide wrote: > I was finally able to solve this myself. The problem was how I referenced > the shared library. Apparently, I need to add the underscore character to > the end if my @Library annotation like this: >

Re: Publisher Over CIFS(CifsBuilderPlugin) seems not to be working when configuring the plugin using groovy DSL script

2017-02-02 Thread Makarand Jadhav
Another interesting thing I found that when I use the following "project / 'builders' / 'jenkins.plugins.publish__over__cifs.CifsPublisherPlugin'" instead of CifsBuilderPlugin in the groovy script, it seems to populate the values in the plugin in Jenkins Job configuration but I believe it gives

Re: Jenkins2 pipeline - Global methods in shared-library fails when invoked

2017-02-02 Thread Tor Christian Solevågseide
I was finally able to solve this myself. The problem was how I referenced the shared library. Apparently, I need to add the underscore character to the end if my @Library annotation like this: @Library('customized-portal-lib') _ Also, I must make sure to not import my global *acme *variable.

Re: slave 2.52, IBM JVM 1.8, Out of memory at end of build

2017-02-02 Thread Baptiste Mathus
Also, though it may or may not be related at all, you want to run an LTS version. Running an old weekly is not great because you might have chosen the wrong one by chance (cannot check now). IOW if you don't plan on upgrading like once a month or more, running a weekly probably doesn't make

No signature of method: static io.fabric8.kubernetes.pipeline.Kubernetes.withPrivileged() is applicable

2017-02-02 Thread kurrent93
Hello I'm not sure if this is the right forum. Apologizes if this is the wrong place. I have described the issue on https://github.com/fabric8io/fabric8-pipeline-library/issues/69, but I dont know exactly where is best to report this issue. Can anyone tell me how I can run the following