Re: Memory leak (groovy)

2017-01-11 Thread Сергей Баранов
Thanks for your reply. I'v checked this, and found that all our workflow jobs uses SCM, as I know, in this mode 'groovy sandbox' enabled with no options. вторник, 10 января 2017 г., 22:01:50 UTC+3 пользователь Sam K написал: > > Is the 'groovy sandbox' checked for all jobs? If you've allowed gr

Having problem in importing the code from Github to Jenkins.

2017-01-11 Thread Sathish M
I am new to Jenkins. I've been learning it by myself, as of now I know to create a job & build it when my source code is in my local system. Now I am trying to work the same from Jenkins. I've been trying it but I can't get that. Can you help me to work here with Github. -- You received this m

Problems using jenkins-cli quiet-down -block

2017-01-11 Thread Joe
Hi all, I want to run some scripts externally that require that all jobs are stopped. I expected the following command to stop new jobs being started, and only return once all the jobs in the queue have finished (or reached the end of a stage for pipeline and paused): java -jar jenkins-cli.ja

Some questions on ArtifactArchiver for a pipeline script

2017-01-11 Thread Kristian
Hey, I have some questions on the ArtifactArchiver. I have several projects, where the artifacts are copied into a special directory, which is not a subfolder of the directory where the source code lies / where the compilation is done. For example, my source code lies at /home/user/project and af

Help me with this error

2017-01-11 Thread Sathish M
Failed to connect to repository : Error performing command: ls-remote -h g...@github.com: and Started by user Administrator Building on master in workspace C:\Users\User\.jenkins\workspace\test-git Cloning the remote Git repository Cloning repository g.

Re: Some questions on ArtifactArchiver for a pipeline script

2017-01-11 Thread jerome
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/artifacts for the zip files: archiveArtifacts artifacts: "../artifacts/**/*.zip", excludes:

Master/Slave requirements

2017-01-11 Thread jerome
Hi, I would like to know how people are doing to manage the slave requirements and installation when having different platform between master and slave. I'm currently having a very simple setup where my Windows master have everything installed on it and no slave. We are looking at making a Linu

Running Job from pipleline - old code is excuted

2017-01-11 Thread Boaz Nahum
Hi. I'm using Jenkins 2.32.1 running on WIndows Server The jenkinsfile that describe the pipeline is something like this: node('boaz') { println "Hello from node ${env.NODE_NAME}" stage('preparation') { node('boaz') { def parameters = [ [$class: 'S

Blue Ocean Parameters

2017-01-11 Thread harold . putman
I have a pipeline build that uses the ExtendedChoice plugin to let a user choose which profiles to build from a multimodule maven project. [ ] Everything [ ] UI [ ] Backend [ ] Admin tools Blue Ocean does not prompt for parameters when the build is Run, so I assume I need to prompt for input. I

Re: Running Job from pipleline - old code is excuted

2017-01-11 Thread Slide
Just curious, why do you have a node() inside of a node()? On Wed, Jan 11, 2017, 09:01 Boaz Nahum wrote: > Hi. > > I'm using Jenkins 2.32.1 running on WIndows Server > > The jenkinsfile that describe the pipeline is something like this: > node('boaz') { > > println "Hello from node ${env.NOD

Re: Help me with this error

2017-01-11 Thread harold . putman
Is Git properly installed on your Jenkins server? https://support.cloudbees.com/hc/en-us/articles/218156697-Git-Failed-to-connect-to-repository-Could-not-init-tmp On Wednesday, January 11, 2017 at 7:19:44 AM UTC-5, Sathish M wrote: > > > Failed to connect to repository : Error performing command:

Re: Running Job from pipleline - old code is excuted

2017-01-11 Thread Peter McNab
I saw a case like then after I changed the name of my Jenkinsfile, but forgot to update the filename in the "script to execute" part of the job configuration. Somewhat surprised to see that my workspace wasn't being cleaned between jobs, but it had me scratching my head for a bit. Pete On

Re: Help me with this error

2017-01-11 Thread Mark Waite
The output > init C:\Users\User\.jenkins\workspace\test-git # timeout=10 usually means that you've made a system configuration error. You've probably defined the name of the git executable as an empty field or empty string. That line should have been: > git init C:\Users\User\.jenkins\worksp

How to use Jenkinsfile in pipeline builds?

2017-01-11 Thread Mark Allison
I have a pipeline build and I want to move it to source control. I've copied out the script from the the project into a Jenkinsfile and added it to git. In my pipeline I have code like this: #!groovy​ node { stage('checkout') { deleteDir() git 'http://git.server

Github Organization and credentials

2017-01-11 Thread Justin Knowles
Hello. I'm having an issue creating a Github Organization (GO from now on) and also not quite understanding how credentials (the plugin) fit into all this. I think I understand that credentials via the plugin can be siloed into different groups or folders for access control purposes. I have a fe

Re: Github Organization and credentials

2017-01-11 Thread Justin Knowles
Well after messing with this for days I magically got it working once I posted this. The fix for me was a combination of my github org config and my Jenkinsfile. In the github org I went to my org -> configure -> repository sources (github organization) -> advanced and changed "checkout credent

Issues with role-strategy plugin on 2.32.1

2017-01-11 Thread Francisca Munhoz
I have upgraded from 2.7.1 to 2.32.1 yesterday, and I got this message about RoleBasedAuthorizationStrategy: Does anyone had this issue before? I was using role-strategy:2.3.2 on 2.7.1 and it did not changed for 2.32.1 hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException:

[Jenkins World 2017]: Call for Paper is OPEN

2017-01-11 Thread Alyssa Tong
Hello, The events team has already began the planning for the annual Jenkins World conference. This year it will take place in San Francisco, California on 28 - 31 August. The Call for Papers is currently open

Re: How to use Jenkinsfile in pipeline builds?

2017-01-11 Thread Mark Allison
Actually this works fine, ignore. I had misconfigured something. On Wednesday, 11 January 2017 20:10:36 UTC, Mark Allison wrote: > > I have a pipeline build and I want to move it to source control. I've > copied out the script from the the project into a Jenkinsfile and added it > to git. In my

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

2017-01-11 Thread Mark Allison
I have defined it outside of the pipeline script in the *This project is parameterised section*. Is that what you mean? I haven't defined anything in the pipeline itself. Do I need to do it there? If so, what is the syntax? Thanks On Monday, 9 January 2017 18:41:36 UTC, David Karr wrote: > > I'

Git Plugin - Merge before build, push on success and delete branch after

2017-01-11 Thread Robert Berta
Hi folks, I using Git Plugin 3.0.1. I selected merge before build option and specified the feature branch name I want to merge into master. After build is done the changes are pushed back to master . Now I want to delete the feature branch. I lost more than a day trying out a shell step to dele

Re: [Declarative Pipeline] Non-executed stages report success

2017-01-11 Thread Chris Carson
https://issues.jenkins-ci.org/browse/JENKINS-41009 Is there a way to access these failure tags from rest api? On Wednesday, January 4, 2017 at 11:50:10 AM UTC-6, Andrew Bayer wrote: > > That's actually addressed with Blue Ocean - we mark failed stages with a > special tag that Blue Ocean knows t

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

2017-01-11 Thread Indra Gunawan (ingunawa)
It should be “echo MYPARAM: ${env.MYPARAM}” in pipeline From: on behalf of Mark Allison Reply-To: "jenkinsci-users@googlegroups.com" Date: Wednesday, January 11, 2017 at 2:58 PM To: Jenkins Users Subject: Re: How to trigger Jenkins build with parameters from Gitlab webhook? I have defined i

Re: Git Plugin - Merge before build, push on success and delete branch after

2017-01-11 Thread Mark Waite
If the repository is only accessible with a private key (RSA authentication), then you'll need to make that private key available to the job while it is running. You may need to launch an ssh-agent from within the job, or you might experiment with the ssh-agent plugin to see if it could assist you

Re: [Declarative Pipeline] Non-executed stages report success

2017-01-11 Thread Andrew Bayer
That's a good question - I'll look into that. A. On Wed, Jan 11, 2017 at 3:00 PM Chris Carson wrote: > https://issues.jenkins-ci.org/browse/JENKINS-41009 > > Is there a way to access these failure tags from rest api? > > > On Wednesday, January 4, 2017 at 11:50:10 AM UTC-6, Andrew Bayer wrote:

Re: Help me with this error

2017-01-11 Thread Sathish M
yes On Wednesday, January 11, 2017 at 11:01:38 PM UTC+5:30, harold...@lexmark.com wrote: > > Is Git properly installed on your Jenkins server? > > > https://support.cloudbees.com/hc/en-us/articles/218156697-Git-Failed-to-connect-to-repository-Could-not-init-tmp > > On Wednesday, January 11, 2017

Re: Help me with this error

2017-01-11 Thread Sathish M
Sorry I didn't get you. On Thursday, January 12, 2017 at 12:45:15 AM UTC+5:30, Mark Waite wrote: > > The output > > > init C:\Users\User\.jenkins\workspace\test-git # timeout=10 > > usually means that you've made a system configuration error. You've > probably defined the name of the git execut

Re: Having problem in importing the code from Github to Jenkins.

2017-01-11 Thread Ramanathan Muthaiah
On Wednesday, January 11, 2017 at 2:45:26 PM UTC+5:30, Sathish M wrote: > > I am new to Jenkins. I've been learning it by myself, as of now I know to > create a job & build it when my source code is in my local system. Now I am > trying to work the same from Jenkins. I've been trying it but I can

Re: Having problem in importing the code from Github to Jenkins.

2017-01-11 Thread Sathish M
Yeah okay, In Github, I have created an account in GitHub. In Jenkins, I added the needed Github plugins into my jenkins. And I added the credentials for my GitHub account and also the api credentials. And I tested the connection in manage jenkins->configuresystem. It succeeded.

Re: Having problem in importing the code from Github to Jenkins.

2017-01-11 Thread Mark Waite
You're using an scp / ssh connection, but seem to be hinting that you may be using a username / password credential. If you're using an scp / ssh connection, then you need to use a private key credential. If a username / password credential is required, then you'll need to use https to connect to

Re: Help me with this error

2017-01-11 Thread Mark Waite
The git plugin allows a user to define the git executable which will be used to perform git commands. That allows users to override the default git executable (for example, with /usr/local/bin/git instead of the default "git"). That configuration is performed through "Manage Jenkins" -> "Global T

Re: Having problem in importing the code from Github to Jenkins.

2017-01-11 Thread Sathish M
I am getting like this when I include SSH credential.why? On Thursday, January 12, 2017 at 10:34:33 AM UTC+5:30, Mark Waite wrote: > > You're using an scp / ssh con

Re: Help me with this error

2017-01-11 Thread Sathish M
I've Installed that git online. So the path is not required right -- Sathish M On Thu, Jan 12, 2017 at 10:48 AM, Mark Waite wrote: > The git plugin allows a user to define the git executable which will be > used to perform git commands. That allows users to override the default > git executab

Re: Help me with this error

2017-01-11 Thread Mark Waite
If you installed git and added it to the PATH, then you should only need to use the default "git". If you did not add it to the PATH, then you'll need to provide the absolute path to the executable. Mark Waite On Wed, Jan 11, 2017 at 10:28 PM Sathish M wrote: > I've Installed that git online.

Re: Having problem in importing the code from Github to Jenkins.

2017-01-11 Thread Mark Waite
Because you have probably not configured the git executable in Jenkins, or possibly you chose to install Git without making git available from the command line. If you installed without making git available from the command line, then you'll need to provide the absolute path to the git executable.