Re: Script for backing up Jenkins

2018-10-16 Thread Sam K
Hi I have a backup mechanism in place. I have a second Jenkins instance and I've been using rsync in a cronjob to keep sending all config.xmls and basically everything except build information and artifacts to the backup Jenkins. It send the information every 2 mins. I remember testing it

Re: Node troubles

2018-03-08 Thread Sam K
t;>> > > at > com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17) > at WorkflowScript.run(WorkflowScript:343) > at ___cps.transform___(Native Method) > > > /Ram > > On Friday, March 2, 2018 at 11:26:46 PM UTC+5:30, Sam K

Node troubles

2018-03-02 Thread Sam K
Hello I have about 20 nodes of various RHEL versions and one team's nodes always pose certain problems and cause their pipelines to fail. For a while, I was able to get them to pass by 'bringing nodes online on-demand' because it would refresh the connection. But lately that strategy has a

Re: Pipeline: coordinating parallel steps on multiple nodes (server on one node, client on another)

2017-07-31 Thread Sam K
allocated > node would be reused for subsequent node blocks with the same label, so I > assumed any specific behavior wasn't guaranteed. That's interesting what > you observed. I wonder if a Jenkins developer could comment on this? > > > On Monday, July 31, 2017 at 3:49:2

Re: QUESTION: If you found the Checkpoint plugin an interesting one, may I ask you to vote the below jira ticket?

2017-07-31 Thread Sam K
Yes, i care about this very much and I voted. thanks. On Friday, July 28, 2017 at 3:52:44 AM UTC-7, Victor Martinez wrote: > > Hi guys, > > If you use Pipelines maybe you are interested about this thread. > > Please forgive me if this is not the right channel to ask for voting a > particular J

Re: Cannot upgrade git plugin beyond 3.3.0

2017-07-31 Thread Sam K
the end I >>> reinstalled the slave software (especially slave.jar). After that all >>> worked as expected. >>> >>> >>> On Monday, July 31, 2017 at 8:29:24 PM UTC+2, Sam K wrote: >>>> >>>> Hi >>>> >>>> This is

Re: Jenkins deployment of a particular build through code

2017-07-31 Thread Sam K
Hi I'm not saying this is the best way... You can add the feature to kick off jobs remotely using a token. Then you can somehow grab the parameters of the job. For example, if user clicks on job no. 6, then this URL gives you the parameters. With wget/curl magic, I'm sure you can get a

Re: Pipeline: coordinating parallel steps on multiple nodes (server on one node, client on another)

2017-07-31 Thread Sam K
rifies what I'm going for. I kinda/sorta have this > working, but I'm cheating by using labels that apply only to a single > windows and linux node (i.e. what you suggested, Sam). That's pretty > limiting and not scalable, so I'm hoping there's a better way. >

Re: How to integrate Karma and jasmine with jenkins for CI-CD. I have nodejs-plugin installed in my jenkins instance.

2017-07-31 Thread Sam K
Its right here man. http://karma-runner.github.io/0.8/intro/installation.html On Monday, July 31, 2017 at 6:57:00 AM UTC-7, Abhishekkumar Srivastava wrote: > > I am referring this post. Karma-Jenkins CI > .It says > you need to i

Re: How to integrate Karma and jasmine with jenkins for CI-CD. I have nodejs-plugin installed in my jenkins instance.

2017-07-31 Thread Sam K
It asks for karma to be installed on the same server as jenkins. So, just use yum/apt-get/whatever to install karma if package is available. Else, download from karma's website for your OS and modify the conf file as suggested. On Monday, July 31, 2017 at 6:57:00 AM UTC-7, Abhishekkumar Sri

Re: Pipeline: coordinating parallel steps on multiple nodes (server on one node, client on another)

2017-07-31 Thread Sam K
I don't have all the answers, but most are embedded. Firstly are you using the freestyle jobs or declarative groovy pipeline jobs? On Monday, July 31, 2017 at 9:53:43 AM UTC-7, Mark wrote: > > Hi. Hoping someone here might be able to help or point me in the right > direction. I've been reading

Re: Q: How to choose nodes for build based on parameter?

2017-07-31 Thread Sam K
As far as I know, this is not possible. I would very much like this feature as well. one example is that I can simply put a label on all the interested nodes and run a jenkins job that will go to each node and do a disk space check on them. Is that something along what you're trying to do?

Cannot upgrade git plugin beyond 3.3.0

2017-07-31 Thread Sam K
Hi This is at least the second time I'm facing this issue. When i updated core Jenkins from 2.47 to 2.58 and now from 2.58 to 2.71. I cannot upgrade git plugin beyond 3.3.0. BTW, what is the difference between git client plugin and git plugin? Do I need both? Is one for the traditio

Re: Check to see if a Pipeline step exist?

2017-04-17 Thread Sam K
Hi You can use this link to keep track of what is already available and what is not. https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md Sam On Friday, April 14, 2017 at 6:23:17 PM UTC-7, Cuong Tran wrote: > > All, > > I need to be able to run the same pipeline code u

cannot run a python script from Jenkins

2017-04-17 Thread Sam K
Hello Looks like I'm having issues running a python script in Jenkins. I am running Jenkins version 2.47. I have tried both declarative pipelines as well as regular jenkins jobs and the issue is the same. I already tried importing from signal suggested in this stackoverflow

Strategy for plugin updates

2017-02-28 Thread Sam K
Hi I've been a administering Jenkins for about 2 - 3 years now. What I've come across several times is that while updates to the Jenkins core go fairly smoothly, the plugins update don't. After the recent security related mandatory update from 2.40 -> 2.45, while the core behaves fine, a pl

how to pass stdout from git to /dev/null

2017-02-23 Thread Sam K
I do a git checkout several times for each deployment server and I dont want the std output in the console log. Is there a way to pass them to /dev/null or something? This is the command whose output I'm not interested in seeing git url: 'g...@bitbucket.org:myteam/scripts_pipeline.git', branc

Re: Cannot contact java.io.IOException: Remote call failed

2017-02-20 Thread Sam K
No errors pointing to these in the /var/log/jenkins.log file. On Monday, February 20, 2017 at 9:07:37 AM UTC-8, Sam K wrote: > > *08:57:03* Cannot contact intellego-build-machine: java.io.IOException: > Remote call on intellego-build-machine failed*08:57:03* Cannot contact > int

Cannot contact java.io.IOException: Remote call failed

2017-02-20 Thread Sam K
*08:57:03* Cannot contact intellego-build-machine: java.io.IOException: Remote call on intellego-build-machine failed*08:57:03* Cannot contact intellego-build-machine: java.io.IOException: Remote call on intellego-build-machine failed*08:57:04* Cannot contact intellego-build-machine: java.io.

Re: Build periodically with Parameters support

2017-02-06 Thread Sam K
Anyone? On Thursday, February 2, 2017 at 3:41:47 PM UTC-8, Sam K wrote: > > 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 param

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 gro

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 e

Re: Restartable Pipeline stages

2017-01-18 Thread Sam K
The non declarative pipeline way where multiple jobs were stitched together, this was possible. But not with declarative pipelines. Looks like the blue ocean project is aiming to address this issue...maybe? For my pipeline, we have to rerun test suites sometimes because they fail intermitte

Timeout message unclear. Bug?

2017-01-17 Thread Sam K
In declarative pipeline, I've created a timeout block like so timeout(time:1, unit:'HOURS') { // Do something here } When the timeout occurred, this message was buried deep in the console output *23:26:42* [131-132] Cancelling nested steps due to timeout And the pipeline failed with a wei

Pipeline build fails intermittently

2017-01-13 Thread Sam K
Hi I have a weird issue. This sort of error happens once a week or once in 10 days. I have no idea how to diagnose this. I cannot reproduce this either. When i run the next build, it just works. Has anyone else seen this type of issue and know a way to fix this? Jenkins version: 2.25

Re: Choose more than one agent at a time

2017-01-10 Thread Sam K
/www.cloudbees.com/blog/parallelism-and-distributed-builds-jenkins > > > > > > *From: *> on behalf of Sam K < > sreer...@gmail.com > > *Reply-To: *"jenkins...@googlegroups.com " < > jenkins...@googlegroups.com > > *Date: *Tuesday, January 10

Re: Choose more than one agent at a time

2017-01-10 Thread Sam K
rency of > multiple run of pipeline you use “concurrency” set to the “stage”. > > https://www.cloudbees.com/blog/parallelism-and-distributed-builds-jenkins > > > > > > *From: *> on behalf of Sam K < > sreer...@gmail.com > > *Reply-To: *"jenkins...@go

Re: Memory leak (groovy)

2017-01-10 Thread Sam K
Is the 'groovy sandbox' checked for all jobs? If you've allowed groovy code to be executed outside of the sandbox, its possible one of the pipelines is using a non-white-listed groovy command that is bringing down Jenkins server. Just talking from my personal experience. On Friday, January

Choose more than one agent at a time

2017-01-10 Thread Sam K
How can I tell Jenkins pipeline to pick up more than one agent at a time if they are free? I see there are ways to do this with the normal jobs. But I'm looking for options in the coded pipeline method. I have two slaves with the same label called 'jenkins-slave'. I have setup all nodes to

Re: Jenkins Pipeline : How could I access the git repository cloned at job start

2016-12-02 Thread Sam K
I just use a ws('') { git url:. , branch: 'master' } and now all the cloned content is within the directory I want. On Tuesday, November 29, 2016 at 1:14:03 AM UTC-8, Jean-Luc Pinardon wrote: > > Dear all, > > I am exploring pipeline features, and I fall into a problem. > The repository

Pipeline development small window

2016-10-25 Thread Sam K
As the pipeline code gets more and more complicated, I find the tiny window to do the coding very painful. So, I've been copying and pasting changes from Notepad+/gvim, hit 'Apply', make sure there are no errors and then run the pipeline. Is there a better way other than checking this into s

Re: Output of shell command into a variable

2016-10-21 Thread Sam K
e#L52 > for > an example, or the stackoverflow answer at > http://stackoverflow.com/questions/36507410/is-it-possible-to-capture-the-stdout-from-the-sh-dsl-command-in-the-pipeline# > . > > Mark Waite > > On Fri, Oct 21, 2016 at 12:08 PM Sam K > > wrote: > >>

Output of shell command into a variable

2016-10-21 Thread Sam K
Currently, I'm doing this. sh ' > /tmp/aa' def VAR1 = readFile('/tmp/aa') This mostly works. But oftentimes the variable has a newline and so it messes up its usage. Is there a better way to store the output in a variable without having to deal with the newline? thanks -- You received

Re: Pipeline jobs - Custom build names?

2016-10-20 Thread Sam K
Thank you so much!! Works like a charm!! On Tuesday, October 18, 2016 at 4:21:39 AM UTC-7, Daniel Beck wrote: > > > > On 17.10.2016, at 19:24, Sam K > > wrote: > > > > name the pipeline build jobs like this using the build name setter > plugin &

Re: Jenkins automate tests and send mail with the version of application

2016-10-17 Thread Sam K
Can you use curl to get the version info, store it into a variable and pass it to the jenkins job? On Monday, October 17, 2016 at 12:45:15 PM UTC-7, Rafael Silva wrote: > > > Hi ! > > I use Jenkins to automate my tests and send me an email with the report > and it's fine. > > But my website has

Pipeline jobs - Custom build names?

2016-10-17 Thread Sam K
Is there a way (yet) to name the pipeline build jobs like this using the build name setter plugin instead of what is now currently showing like this:

Re: Email ext to send html body in Pipeline

2016-10-14 Thread Sam K
Hmm, not sure what you're asking...but the FILE,path along with the mimeType: 'text/html' does send any html file in the body of the email. On Friday, October 14, 2016 at 9:57:15 AM UTC-7, jer...@bodycad.com wrote: > > Hi, > > I found the Jelly script way of doing it, see my post into this forum

Re: Email ext to send html body in Pipeline

2016-10-12 Thread Sam K
Is there a plan to allow the ${FILE,path="${DIR}/test.html"} option that is already available in the plugin? That is EXACTLY what most would want I presume. :) On Tuesday, October 11, 2016 at 11:26:58 AM UTC-7, Sam K wrote: > > Thanks for bringing this to my attention Mark.

Re: Email ext to send html body in Pipeline

2016-10-11 Thread Sam K
, October 11, 2016 at 7:24:01 AM UTC-7, Mark Bidewell wrote: > > Support for templates was added in 2.50 if that helps. > > On Monday, October 10, 2016 at 1:21:28 AM UTC-4, Sam K wrote: >> >> This works for most part. Except, I have a html formatted file which I >>

Re: Locked out of Jenkins

2016-10-10 Thread Sam K
I have been in this situation before, and have learnt a lesson since then never to close the window and never to use 'save' but use 'apply' instead, use a incognito window and make sure I still am able to login before closing the main window. That said, how about installing another version of J

Email ext to send html body in Pipeline

2016-10-09 Thread Sam K
This works for most part. Except, I have a html formatted file which I would like to send as the body. Is it possible? Thanks emailext attachmentsPattern: '*.log, *.html', body: 'BUILD_URL = ' + env.BUILD_URL, subject: 'END Coded Pipeline Build SOURCE - ' + CODE_BRANCH + ' TESTS - ' + TEST_B

Re: Pipeline help please!

2016-10-04 Thread Sam K
Thanks everyone! I got it working exactly as I wanted. For any others struggling with the same, here is the solution. Hope it helps someone! :) *Pipeline job will take parameters like this:*

Re: Pipeline help please!

2016-10-04 Thread Sam K
ins.io/doc/pipeline/examples/ > > Assign ip at start of block. > > branches ["$ip"] = { > def ipAddress = ip > // use ipAddress instead of ip > > On Tue, 04 Oct 2016, 19:53 Sam K > wrote: > >> So looks like parallel is for running multipl

Re: Pipeline help please!

2016-10-04 Thread Sam K
parallel block kicks in and reads the temp file all at once? On Friday, September 30, 2016 at 11:54:32 AM UTC-7, Sam K wrote: > > I have 4 sets of IP addresses separated by commas. It'm converting the > string to a list and using the parallel block to execute them in parallel.

Re: Pipeline: Abort build nightmare

2016-10-02 Thread Sam K
I hear you brother...been using Jenkins for over 3 years and never had this problem...wonder why I pitched at my workplace so hard for the pipeline and sometimes I want to tell my manager and co workers to go back to the old way of multiple jobs instead of the coded pipeline way of things. Bu

Re: Pipeline Issue

2016-10-02 Thread Sam K
Hi Vishad I am not too sure about the 1 and 3, but regarding 2, I've seen that happen. No matter how many times you remove those @ folders, they come back. I've left those alone and I've noticed that Jenkins will manage them accordingly. They don't keep growing in number either. I have r

Re: Pipeline help please!

2016-10-01 Thread Sam K
ICES.md#groovy-gotchas > > On Friday, September 30, 2016 at 10:26:40 PM UTC-7, Sam K wrote: >> >> Anyone? >> >> On Friday, September 30, 2016 at 11:54:32 AM UTC-7, Sam K wrote: >>> >>> I have 4 sets of IP addresses separated by commas. It'm convertin

Re: Pipeline help please!

2016-09-30 Thread Sam K
Anyone? On Friday, September 30, 2016 at 11:54:32 AM UTC-7, Sam K wrote: > > I have 4 sets of IP addresses separated by commas. It'm converting the > string to a list and using the parallel block to execute them in parallel. > > Problem: I am unable to get the IP

Pipeline help please!

2016-09-30 Thread Sam K
I have 4 sets of IP addresses separated by commas. It'm converting the string to a list and using the parallel block to execute them in parallel. Problem: I am unable to get the IP addresses within the parallel blocks. As you can see the branch name is interpreted properly. However, within t

Re: Same Jenkins job for different git branches

2016-09-22 Thread Sam K
ber 19, 2016 at 3:59:15 PM UTC-7, Sam K wrote: >> >> How will it affect the list of changes it shows on the builds page? >> >> Build No. 10 was built with master branch >> Build No. 11 is built with release_alpha branch >> Build No. 12 is then built with mast

Same Jenkins job for different git branches

2016-09-19 Thread Sam K
How will it affect the list of changes it shows on the builds page? Build No. 10 was built with master branch Build No. 11 is built with release_alpha branch Build No. 12 is then built with master branch Will changes between the builds be tracked correctly? Will build no. 12 report changes be

Will workspace cleanup affect Changes tracking?

2016-09-19 Thread Sam K
I have one job that pulls source code from different branches. I see that the 'Changes' shows the correct checkins that happened on Git for each of the branches. Will having a 'deleteDir()' in the jobs affect the Jenkins changes tracking? Does Jenkins use the workspace for tracking the change

Re: Problem running batch script from Jenkins - help please!

2014-07-03 Thread Sam K
Oh, I have come across this error in my previous job. Unfortunately, I cannot test it now. But instead of %BuildResultsDir%, try $BuildResultsDir$ and see if it helps. On Thursday, July 3, 2014 7:31:12 AM UTC-7, funee...@gmail.com wrote: > > >We run our build.bat on a windows box. We ar

Re: Jenkins plugin to display or interact with local file-system?

2014-07-02 Thread Sam K
You could use the 'execute shell' option and put all your commands in there. Its basically a shell script that runs on the system you desire. You could 'restrict where this job is run' to the machine you want and it'll execute those commands over there. Sam On Tuesday, July 1, 2014 10:28:32

Jobs' configuration takes too long to load

2014-07-02 Thread Sam K
Hi It takes almost 5 - 6 mins each time for a job's configuration to load. We have about 15 - 20 jobs and the behaviour is the same if there are any other builds running or not. Our Jenkins is version 1.525 running in Tomcat 7.0 container. The Jenkins server is a solaris box with 128GB