Re: Programmatically searching the artifacts from multiple jobs

2019-08-11 Thread niristotle okram
Short answer, you need something like splunk or elastic search to parse the
logs and check for specific strings.

On Sun, Aug 11, 2019 at 5:55 PM Tony C  wrote:

> Hi,
>
> I've been using Jenkins at work, for just over a year. I"m not the main
> architect of our groovy infrastructure. I'm just a user
> who has several jobs which run each night.
>
> Each of those jobs saves a handful of artifacts (log files) from that job.
>
> I usually go into each job and look at a specific file (common to each
> job), for specific text that would indicate the job had a problem.
> Since there are so many jobs being run, this takes quite a bit of time.
> Every day.
>
> I would like to be able to search all of the jobs which ran on a certain
> date and scan the artifacts for specific text.
> I would probably do this outside of Jenkins, by writing a script to scan
> the artifact files.
>
> However, I don't know how to gain access to those jobs programmatically,
> let alone scanning the artifacts of each of those jobs.
>
> I've used the Python-Jenkins library
> https://python-jenkins.readthedocs.io/en/latest/
>
> but it doesn't have the ability to do what I want- scanning the artifacts
> of several builds (or a specific build).
>
> Thanks
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com
> 
> .
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4gvr8HLsYMUsZ7yMLi7_r_Kayj%3D8Ssx6ETwKNfbRMnDZg%40mail.gmail.com.


Re: Figuring out what is causing a job failure

2019-05-07 Thread niristotle okram
If I remember correctly, the non 0 status of the command is enough to exit.
Your exit 0, will not be executed. There is a workaround for that.

On Tue, May 7, 2019 at 3:28 PM Alexandru Băluț  wrote:

> I set up a freestyle job which has a single "Execute shell" build step,
> and is run on a remote node. The shell script starts some jobs in the
> background, then waits for one of them to exit, then kills them all with
> "killall -9 jobName || echo dead", then at the end it "exit 0" to signal
> success. There are no post build steps.
>
> Despite "exit 0", the job fails. It would be useful if the "FATAL: Remote
> call on instance-1 failed" message includes the failure reason.
>
> There are some "Also:" stacktraces printed, see below, which don't appear
> when the script contains only "exit 0". Do you think these are related to
> the failure?
>
> How can I find what's causing this failure?
>
> --- Console output below ---
>
> Started by remote host 1.1.1.1
> Building remotely on instance-1 (sim) in workspace /path/to/JobName
> [JobName] $ /bin/sh -xe /tmp/jenkins6599300392607514127.sh
>
> [...]
>
> + date
> Mon May  6 13:38:06 UTC 2019
> + echo Done
> Done
> + exit 0
> FATAL: Remote call on instance-1 failed
> Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel
>   at 
> hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1737)
>   at hudson.remoting.Request.call(Request.java:197)
>   at 
> hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:281)
>   at com.sun.proxy.$Proxy6.fetch3(Unknown Source)
>   at 
> hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:209)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:588)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:521)
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:315)
>   at 
> hudson.util.ProcessTree$UnixReflection.(ProcessTree.java:778)
>   at 
> hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:726)
>   at 
> hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:747)
>   at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:666)
>   at 
> hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1096)
>   at 
> hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1087)
>   at hudson.remoting.UserRequest.perform(UserRequest.java:210)
>   at hudson.remoting.UserRequest.perform(UserRequest.java:53)
>   at hudson.remoting.Request$2.run(Request.java:364)
>   at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:264)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>   at java.lang.Thread.run(Thread.java:834)
> java.lang.ClassNotFoundException: Classloading from system classloader 
> disabled
>   at 
> hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:854)
>   at 
> hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:889)
>   at sun.reflect.GeneratedMethodAccessor9164.invoke(Unknown Source)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:498)
>   at 
> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:929)
>   at hudson.remoting.Request$2.run(Request.java:369)
>   at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>   at 
> org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:19)
>   at 
> hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
>   at 
> jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
>   at 
> jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to instance-1
>   at 
> hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
>   at hudson.remoting.UserResponse.retrieve(UserRequest.java:389)
>   at hudson.remoting.Channel.call(Channel.java:955)
>   at 

Re: Jenkins does not restart on restarting Windows machine

2019-04-20 Thread niristotle okram
I would look into the general settings for any windows service to start
automatically. Jenkins will be no different.

GoogLe it, if not share the screenshots of the service settings


On Sat, Apr 20, 2019 at 8:17 AM ABostonGal ABostonGal 
wrote:

> I have Jenkins installed as a Windows service and the service set to
> restart automatically; I thought that this means that when Windows
> restarts, the service would restart. But what I am seeing is that the
> service does not restart on Windows restart and I must go into Services and
> start it.
>
> What did I miss?
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c6eec9a7-a5fd-4f02-9724-3903749d9fee%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jchB%2BeUwtVNeaM%3D9r8cTdb7uRMvkcR8ZOzAWmS6%3D15fA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins space issue

2019-04-15 Thread niristotle okram
Ok.

On Mon, Apr 15, 2019 at 1:18 AM Archana Srichandan <
archana.srichan...@4tigo.com> wrote:

> Hi Team,
>
> i am facing space issue in jenkins.
>
> [image: image.png]
> Regards,
> Archana Srichandan
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CA%2BU8sbXbXtH24eZvD91Wgad8Uf-jHQg9VNFdNo3GiUT9f26k0g%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4i7VPeu6Fu7CFzCWvpEZecG%2BPEEFNbMfGswXq_ta-%3Dgfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: remoting issue

2019-02-11 Thread niristotle okram
Okay going by the logs now, here are some of the possible things that you
can look into:

1. jdk versions consistent across the master and slaves
2. https://issues.jenkins-ci.org/plugins/servlet/mobile#issue/JENKINS-30561
3.
https://devops.stackexchange.com/questions/1053/jenkins-cannot-reach-nodes-after-upgrade
4. "Jenkins 2.58+ only support java8 or higher, this includes your agents
JVM." so you can try jdk7 instead of 8

i will bet on 1 and 4. All the best!





On Mon, Feb 11, 2019 at 2:52 PM Glenn Burkhardt 
wrote:

> I've attached the two logs.  I did make a change after seeing 'Failed to
> ack the stream' to turn off scatter/gather.  But I think that's a bit of a
> "hail mary".
>
> On Monday, February 11, 2019 at 10:16:05 AM UTC-5, Ivan Fernandez Calvo
> wrote:
>>
>> It could be tons of things, Probably, if you go to the node log
>> (JENKINS_URL/computer/NODE_NAME/log) we could see if the agent connect or
>> not, then if the communication is broken before/after connection and in
>> which point.
>>
>>
>> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/733c4024-b246-4dfb-b50c-3a7c85641e1b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iiX8iOZviNzXfynLDjkyt7pCUQ8Z7G_8kmg%3DaCS-2%3DTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: remoting issue

2019-02-11 Thread niristotle okram
This thing caught my eye:

Feb 11, 2019 8:15:03 AM hudson.remoting.ProxyOutputStream$Chunk$1 run
WARNING: Failed to *ack *the stream


That indicates a TCP issue over there. Try this


[root@ip-172-31-2-59 ec2-user]# ethtool -K eth0 sg off
Actual changes:
scatter-gather: off
tx-scatter-gather: off
tcp-segmentation-offload: off
tx-tcp-segmentation: off [requested on]
generic-segmentation-offload: off [requested on]


https://github.com/scala/scala-jenkins-infra/issues/26#issuecomment-73825006






On Mon, Feb 11, 2019 at 9:16 AM Ivan Fernandez Calvo <
kuisathave...@gmail.com> wrote:

> It could be tons of things, Probably, if you go to the node log
> (JENKINS_URL/computer/NODE_NAME/log) we could see if the agent connect or
> not, then if the communication is broken before/after connection and in
> which point.
>
> El miércoles, 6 de febrero de 2019, 16:39:17 (UTC+1), Glenn Burkhardt
> escribió:
>>
>> We've been seeing job termination due to slave disconnects, and would
>> like help in solving this issue.
>>
>> Jenkins 2.140
>> ssh-slaves-plugin 1.29.4
>> Ubuntu 16.04.5
>> Hypervisor, plugin Libvirt 1.8.6
>> Slave guest:  Ubuntu 18.04.1
>>
>> Jenkins and the VMs are all running on the same machine, so network
>> activity shouldn't be an issue.
>>
>> I've been looking at the wiki note here:
>> https://wiki.jenkins.io/display/JENKINS/Remoting+issue
>>
>> and the anomaly I've noticed is repeated in the slave.log file created by
>> Jenkins (SocketTimeoutException):
>>
>> Feb 06, 2019 8:37:58 AM org.jenkinsci.remoting.engine.WorkDirManager
>> initializeWorkDir
>> INFO: Using /home/jenkins/remoting as a remoting work directory
>> Both error and output logs will be printed to /home/jenkins/remoting
>> <===[JENKINS REMOTING CAPACITY]===>channel started
>> Remoting version: 3.25
>> This is a Unix agent
>> Evacuated stdout
>> Agent successfully connected and online
>> ERROR: Connection terminated
>> java.io.EOFException
>> at
>> java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2681)
>> at
>> java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3156)
>> at
>> java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:862)
>> at java.io.ObjectInputStream.(ObjectInputStream.java:358)
>> at
>> hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:49)
>> at hudson.remoting.Command.readFrom(Command.java:140)
>> at hudson.remoting.Command.readFrom(Command.java:126)
>> at
>> hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:36)
>> at
>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)
>> Caused: java.io.IOException: Unexpected termination of the channel
>> at
>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:77)
>> ERROR: Socket connection to SSH server was lost
>> java.net.SocketTimeoutException: The connect timeout expired
>> at com.trilead.ssh2.Connection$1.run(Connection.java:762)
>> at
>> com.trilead.ssh2.util.TimeoutService$TimeoutThread.run(TimeoutService.java:91)
>> Slave JVM has not reported exit code before the socket was lost
>> [02/06/19 08:41:05] [SSH] Connection closed.
>>
>> The remoting log on the slave has
>>
>> Feb 06, 2019 8:41:05 AM
>> hudson.remoting.SynchronousCommandTransport$ReaderThread run
>> SEVERE: I/O error in channel channel
>> java.io.IOException: Unexpected termination of the channel
>> at
>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:77)
>> Caused by: java.io.EOFException
>> at
>> java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2671)
>> at
>> java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3146)
>> at
>> java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:858)
>> at java.io.ObjectInputStream.(ObjectInputStream.java:354)
>> at
>> hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:49)
>> at hudson.remoting.Command.readFrom(Command.java:140)
>> at hudson.remoting.Command.readFrom(Command.java:126)
>> at
>> hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:36)
>> at
>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)
>>
>> and the /var/log/jenkins/jenkins.log has:
>>
>> Feb 06, 2019 8:41:05 AM
>> hudson.remoting.SynchronousCommandTransport$ReaderThread run
>> SEVERE: I/O error in channel ubuntu-122-2
>> java.io.IOException: Unexpected termination of the channel
>> at
>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:77)
>> Caused by: java.io.EOFException
>> at
>> java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2681)
>> at
>> 

Re: How do I include special characters like [,[ and . cURL POST data?

2019-01-23 Thread niristotle okram
The chances of geting As for your Qs is higher when you show the failing
command and error.

On Wed, Jan 23, 2019 at 12:57 PM Panneer  wrote:

> Hi All,
>
> How do i pass special characters [,[ and .  and data thru cURL POST data? .
>
> Environment: Jenkins pipeline.
>
>
> Thanks
> Panneer
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/70cf0a45-42e9-4558-9beb-d76f848a4a9c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4ienwp5KYgGXtMK3x5pCRacK1_jKPObVcpQf_%2BPsqdwwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins-docker

2018-05-23 Thread niristotle okram
What did u tried?

On Thu, May 17, 2018 at 3:15 AM  wrote:

> Hi All,
>
> Setting a new infrastructure please help me out how to setup jenkins with
> docker .? Individaly i know how to handle
>
>
> Thank you
> kirti
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/7f2ad7b2-2aa4-43c0-8bfe-ebc1b37f0631%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4gMEKXwoHv_3f22A2XKi6GNMuAR4vBRYMeyyC6EQE3zgw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I would like to downgrade the version of Python that Jenkins is using.

2018-05-20 Thread niristotle okram
Check out the global config in jenkins to find what version of python is
used? If there is no python listed, check the default python that the
instance on which the build is executed



On Mon, May 14, 2018 at 11:41 AM Patricia Sandt 
wrote:

> The Ubuntu 16.04 version of Python is 2.7. My build depends on this.
> Jenkins is apparently using a newer version (3?), which doesn't work with
> _html5lib.py in my build. Is there a way to force Jenkins to use a
> particular version of Python?
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/3d899d28-0557-4bdf-8795-93e38a664d12%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4gg56HnBBKLugoQfsz1bhphNbC23HFZOOcDhtf47tpstQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re:

2018-05-10 Thread niristotle okram
What is your version of the plugins?

On Thu, May 10, 2018 at 3:14 AM Victor Martinez <
victormartinezru...@gmail.com> wrote:

> I'm not sure if you can upgrade those plugins but you could give a go and
> run a local jenkins instance with the latest version of those plugins and
> see whether the same behaviour keeps going. Other than that, I don't have
> any other suggestions.
>
> Cheers
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d8748045-ec9d-4c27-9b68-476e8f5437e6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jX_8Q_f2vNaEFD1jbP5HAqUpT5cHdyOw7B-0UGKJigRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re:

2018-05-09 Thread niristotle okram
this is what i have




On Wed, May 9, 2018 at 4:04 PM, Victor Martinez <
victormartinezru...@gmail.com> wrote:

> As far as I see it's there
>
>
> 
>
>
> What version of pipelines are you using?
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/2b6df697-02f1-41e9-a383-fd5956484da6%40googlegroups.
> com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4h9cGo8Fy79gOGzM9XzfEyDx32LdgKU%3DbbooQcVrTMTiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re:

2018-05-09 Thread niristotle okram
where do i see the option to whitelist? I dont see this method in the
"pending list" waiting to be approved.

On Wed, May 9, 2018 at 12:43 PM, Slide <slide.o@gmail.com> wrote:

> To quote R. Tyler Croy. NEVER DISABLE THE SANDBOX.
>
> If you really want to do what you are trying to do, you can whitelist the
> toTimestamp method of the java.util.Date class in the global configuration
> area of Jenkins, or create the getTimeStamp function in a shared library.
>
> On Wed, May 9, 2018 at 9:46 AM niristotle okram <nirish.ok...@gmail.com>
> wrote:
>
>> i am getting a failure calling the below function in a pipeline
>>
>> def getTimeStamp(str) {
>>d = new Date(str).toTimestamp();
>>return d
>> }
>>
>>
>> Exception Caught: 
>> org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: 
>> Scripts not permitted to use staticMethod 
>> org.codehaus.groovy.runtime.SqlGroovyMethods toTimestamp java.util.Date
>>
>>
>>
>> If i unchecked the "groovy sandbox" and paste the pipeline - it WORKS
>> while if i checkout the jenkinsfile from the repo, the same error comes
>> back. Is there a way where i can disable "sandbox" while retrieving the
>> pi[eline script from a git repo?
>>
>> Note: the method doesnt show up for approval too
>>
>>
>>
>> --
>> Regards
>> nirish okram
>>
>> --
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/jenkinsci-users/CAPzcO4gxDR0idMzm8n9Y0W-
>> 5OoK4s7tty_uNGDzeQLvAija_wQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4gxDR0idMzm8n9Y0W-5OoK4s7tty_uNGDzeQLvAija_wQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CAPiUgVe%2BaU-HUcHvys2Oy-
> rwUQnqbr8AdxAKjk7joySX3zJTNQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVe%2BaU-HUcHvys2Oy-rwUQnqbr8AdxAKjk7joySX3zJTNQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hBL3QeYXNi8bZsSk8Qz5WGvv6HyUyLeu%2BG9c0x_LAHUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2018-05-09 Thread niristotle okram
i am getting a failure calling the below function in a pipeline

def getTimeStamp(str) {
   d = new Date(str).toTimestamp();
   return d
}


Exception Caught:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException:
Scripts not permitted to use staticMethod
org.codehaus.groovy.runtime.SqlGroovyMethods toTimestamp
java.util.Date



If i unchecked the "groovy sandbox" and paste the pipeline - it WORKS
while if i checkout the jenkinsfile from the repo, the same error comes
back. Is there a way where i can disable "sandbox" while retrieving the
pi[eline script from a git repo?

Note: the method doesnt show up for approval too



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4gxDR0idMzm8n9Y0W-5OoK4s7tty_uNGDzeQLvAija_wQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: how do I list all the pull request for the repo?

2018-05-01 Thread niristotle okram
which provider?

On Tue, May 1, 2018 at 1:12 PM, swordfish  wrote:

> I want to write a script inside shared library which gives list of all
> pull requests. Any sample example?
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/ed348406-68b4-4789-b41e-09353b4d592f%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4gszyhd_OhtAFUFm3YTEum3d9%3DzErjhJTNvmdTC1QtCfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [DISCUSS] Change Jenkins default logging format

2018-04-12 Thread niristotle okram
Definitely yes.

On Thu, Apr 12, 2018 at 2:40 AM, Baptiste Mathus  wrote:

> Hello everyone,
>
> I am transferring this email I originally posted in the dev list a few
> days ago to gather more feedback.
> To sum up: I am proposing to change the current logging format to a more
> consise and machine-friendly one-liner (when there's no stacktrace)
>
> If you wish to see it changed, or not, please comment on the subject
> detailed below.
>
> Thanks!
>
> -- Forwarded message --
> From: Baptiste Mathus 
> Date: 2018-04-04 15:17 GMT+02:00
> Subject: [DISCUSS] Change Jenkins default logging format
> To: Jenkins Developers 
>
>
> Hello everyone,
>
> Having worked on more things related to Jenkins logging recently, I've had
> the opportunity to remember my past pain when I was operating a Jenkins
> instance and sending logs to an ELK cluster.
> Compared to almost everything else in the infrastructure, the logstash
> rules for Jenkins logs were unnecessarily complex.
>
> The main pain-points, for me at least, had been the two-lines (sigh) per
> log default, and also the localized date format (or log level...).
> Even now, so many years after reading those, I still struggle daily to
> make sure I'm reading the right line/date associated to the message I'm
> reading on the line above.
>
> I would like to propose we change the current logging format behavior to a
> more readable and more operation-friendly one.
> This would result in something close to the following format:
>
> [   INFO][2018-04-04 12:40:49] Logging initialized @180ms to
> org.eclipse.jetty.util.log.JavaUtilLog (from
> org.eclipse.jetty.util.log.Log initialized)
> [   INFO][2018-04-04 12:40:49] Beginning extraction from war file (from
> winstone.Logger logInternal)
> [WARNING][2018-04-04 12:40:49] Empty contextPath (from
> org.eclipse.jetty.server.handler.ContextHandler setContextPath)
> [   INFO][2018-04-04 12:40:49] jetty-9.4.z-SNAPSHOT (from
> org.eclipse.jetty.server.Server doStart)
>
> Instead of the usual:
>
> Apr 04, 2018 12:36:41 PM org.eclipse.jetty.util.log.Log initialized
> INFO: Logging initialized @354ms to org.eclipse.jetty.util.log.JavaUtilLog
> Apr 04, 2018 12:36:41 PM winstone.Logger logInternal
> INFO: Beginning extraction from war file
> Apr 04, 2018 12:36:42 PM org.eclipse.jetty.server.handler.ContextHandler
> setContextPath
> WARNING: Empty contextPath
> Apr 04, 2018 12:36:42 PM org.eclipse.jetty.server.Server doStart
> INFO: jetty-9.4.z-SNAPSHOT
>
>
> WDYT?
>
> If this looks interesting to people, I'm ready to file the associated JEP
> for it and possibly work on its implementation in the future.
>
> Obviously, we would need some way to revert to the "legacy" format, at
> least for some time for users to adapt. But that is not something I'm
> particularly worried about.
>
> -- Baptiste
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CANWgJS60enT9U8n4Mu1X7dmifixdn
> KoU0303GZwOKZCvQKeAhA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jQvKjBdC_9R6%2BSQchbkr7j1UKcDnVObbmPXuOwcp5s1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Git Repo fetch Error-128

2018-02-23 Thread niristotle okram
I would login to the jenkins node, and would try to clone the repo
manually.

If you dont have access to the box. Try executing a build with the shell
option to git pull with more verbosity set. This is an environment issue
and can be due to anything hence difficult to say what exactly is the issue

On Fri, Feb 23, 2018 at 4:27 PM  wrote:

> Hello,
>
> "Failed to connect to repository : Command "C:\Program
> Files\Git\bin\git.exe ls-remote -h https://
> gitlab.com/hps-peaas/vcawallet/vwallet_android.git HEAD" returned status
> code 128:
> stdout:
> stderr: remote: The project you were looking for could not be found.
> fatal: repository 
> 'https://gitlab.com/hps-peaas/vcawallet/vwallet_android.git/'
> not found
>
>  i am facing this issue in jenkins very long time.Can any one help me out
> to resove the issue?
> Thank You.
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/eebace3c-bb4a-44ea-9bbb-f3ea0b6d2c70%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jaDRo-BdqDGFsLyqetSb313ZQ1c4ZOKq7eByXiSn3JLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins motioning

2018-02-21 Thread niristotle okram
How about a hello world page as well? Is that okay

On Mon, Feb 19, 2018 at 11:13 PM vikram reddy 
wrote:

> display details  the of below metrics
>  Pipeline capabilities usage (how many use sonar, how many use nexus, etc)
> How many apps have a pipeline at all
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/6a7e42ba-5ea6-404f-adbf-8ae9f445b7b0%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hDZaWYgOcURxQ7mLs%2BHT-mECx-Z9VU5Y7noTPu9uCLYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: List of git branches using Jenkinsfile parameters

2018-02-19 Thread niristotle okram
What kind of pipeline job is that? The one with jenkins groovy dsl or the
declarative one? How r u listing remote git branches in the job parameters
to be selected by a user before starting a build?

I haven’t came accoss that feature. And for the multi branch job, wasnt it
suppose to build any new branch? Why do u want to select specific branch
with it?

On Mon, Feb 19, 2018 at 10:13 AM  wrote:

> Hmm, I was wondering that myself, but the pipeline job can run and
> populate the parameter list at runtime, so I was wondering if/hoping the
> multibranch can do the same
>
>
> On Monday, 19 February 2018 15:14:17 UTC+11, ok999 wrote:
>
>> I dont have much experience with multi branch job types. Nonetheless, The
>> below requirement may not be possible unless there is some plugin to do so.
>>
>> The job / local workspace will not have any idea of remote branches
>> before you trigger it. A workaround may be to start the job, create a stage
>> that checks out the remote branches, and use the input dsl for a users
>> input.
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Feb 19, 2018 at 9:33 AM  wrote:
>>
> Correct. If I choose to "Build with parameters" I want a Branch parameter
>>> to list all the branches of that jobs repository, but defined in a
>>> Jenkinsfile as a multibranch pipeline
>>>
>>>
>>> On Monday, 19 February 2018 14:39:07 UTC+11, ok999 wrote:
>>>
 Not sure, if i am following this requirement. Am I understanding it
 right, if you want to list the remote branches of a repository on jenkins
 job as a parameters?

 On Mon, Feb 19, 2018 at 8:43 AM  wrote:

>>> What I want to be able to do -
>
> Have a Jenkinsfile that will automatically build a git master branch
> if triggered automatically on commit but prompt the user to select from a
> branch if run manually
>
> Selecting the master if triggered automatically is no problem using
> parameter default value, but I cannot for the life of me figure out a way
> to populate the branch parameter
>
> I've looked for a way to use the Git parameters plugin but while there
> is plenty of examples on how to use it though the gui with a pipeline
> script, I cant find any documentation or examples on how to use it with
> multibranch/Jenkinsfile using code
>
> can anyone help with the above, or any other method?
>
> thanks
>
> --
> 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 jenkinsci-use...@googlegroups.com.


> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/1995eb74-988c-4fb2-b972-f849771769c2%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
 Sent from mobile device, excuse typos if any.

>>> --
>>> 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 jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/c987a2f1-9e25-4b20-bfa1-233a47a0ea43%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Sent from mobile device, excuse typos if any.
>>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d4462e32-4ff0-489c-adb7-3fce522e22d9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jWvAHNnnqJH9LGmvWy5Zqf3FL67cjOnMSLWJbi87gaWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: List of git branches using Jenkinsfile parameters

2018-02-18 Thread niristotle okram
I dont have much experience with multi branch job types. Nonetheless, The
below requirement may not be possible unless there is some plugin to do so.

The job / local workspace will not have any idea of remote branches before
you trigger it. A workaround may be to start the job, create a stage that
checks out the remote branches, and use the input dsl for a users input.







On Mon, Feb 19, 2018 at 9:33 AM  wrote:

> Correct. If I choose to "Build with parameters" I want a Branch parameter
> to list all the branches of that jobs repository, but defined in a
> Jenkinsfile as a multibranch pipeline
>
>
> On Monday, 19 February 2018 14:39:07 UTC+11, ok999 wrote:
>
>> Not sure, if i am following this requirement. Am I understanding it
>> right, if you want to list the remote branches of a repository on jenkins
>> job as a parameters?
>>
>> On Mon, Feb 19, 2018 at 8:43 AM  wrote:
>>
> What I want to be able to do -
>>>
>>> Have a Jenkinsfile that will automatically build a git master branch if
>>> triggered automatically on commit but prompt the user to select from a
>>> branch if run manually
>>>
>>> Selecting the master if triggered automatically is no problem using
>>> parameter default value, but I cannot for the life of me figure out a way
>>> to populate the branch parameter
>>>
>>> I've looked for a way to use the Git parameters plugin but while there
>>> is plenty of examples on how to use it though the gui with a pipeline
>>> script, I cant find any documentation or examples on how to use it with
>>> multibranch/Jenkinsfile using code
>>>
>>> can anyone help with the above, or any other method?
>>>
>>> thanks
>>>
>>> --
>>> 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 jenkinsci-use...@googlegroups.com.
>>
>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/1995eb74-988c-4fb2-b972-f849771769c2%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Sent from mobile device, excuse typos if any.
>>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c987a2f1-9e25-4b20-bfa1-233a47a0ea43%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hH9dFx06AEaaO0uUGCPNgtPPjuf%3DG6kYSt4XgK02kujA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: List of git branches using Jenkinsfile parameters

2018-02-18 Thread niristotle okram
Not sure, if i am following this requirement. Am I understanding it right,
if you want to list the remote branches of a repository on jenkins job as a
parameters?

On Mon, Feb 19, 2018 at 8:43 AM  wrote:

> What I want to be able to do -
>
> Have a Jenkinsfile that will automatically build a git master branch if
> triggered automatically on commit but prompt the user to select from a
> branch if run manually
>
> Selecting the master if triggered automatically is no problem using
> parameter default value, but I cannot for the life of me figure out a way
> to populate the branch parameter
>
> I've looked for a way to use the Git parameters plugin but while there is
> plenty of examples on how to use it though the gui with a pipeline script,
> I cant find any documentation or examples on how to use it with
> multibranch/Jenkinsfile using code
>
> can anyone help with the above, or any other method?
>
> thanks
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/1995eb74-988c-4fb2-b972-f849771769c2%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iTm2_BSsu6T4_LJhT5FwTNnP%2B4QQwE-R3jvs-bDgQ-Gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: new File is adding C: to the path of a linux container

2018-02-15 Thread niristotle okram
Files generated by jenkins during a build is created in the master. You
have to use the "readFile" to use it in the compute environment of the
slaves/agents

On Thu, Feb 15, 2018 at 10:57 AM, red 888  wrote:

> I have a windows master that executes a stage in a container on a linux
> slave.
>
>
> Groovy is appending a "C:" to the path inside the linux container- totally
> breaking it:
>
> stage('sdlfkjsldkf') {
> agent {
> docker {
> image "library/alpine"
> }
> }
>
> steps {
> script {
> new File("${workspace}/blah")
> .traverse(type: FileType.DIRECTORIES, nameFilter: 
> 'subfolder') {
> echo "${it.path}"
> }
> }
>
> The error I get:
>
> java.io.FileNotFoundException: 
> C:\home\jenkins\workspace\myworkspace\blah\subfolder
>
> if I echo ${workspace} it correctly starts at /home, but it looks like new
> file want to add "C:" to the beginning of it
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/2ee3d6c3-95b9-4f45-acf9-704228b0717b%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hGy_HK2Cr83ZQDDZQ0_HhnfdCHXrbAySA_r35Sd4vKWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Dollar sign in credentials broken for declarative pipelines

2018-02-13 Thread niristotle okram
I just had this a couple of days back in a shell script. I had to place the
password string (which have the $) within a quote.

But can we put the quotes in the password field of the jenkins credentials
page, wont it not treat the quote as a part of the password string? I
haven’t tested it though.



On Tue, Feb 13, 2018 at 10:50 PM Mark Waite 
wrote:

> Are you sure that's really a bug?
>
> If the value of mypass is 'ASD123$567' and that is passed as an
> environment variable to the shell, won't the shell see the '$567' and
> attempt to expand an environment variable named '567'?  The expansion of
> $567 is probably the empty string.
>
> If '$' and other special characters are embedded in the password, aren't
> surrounding quotes needed around the expanded result to assure it is not
> interpreted by the shell?
>
> Mark Waite
>
>
>
> On Tue, Feb 13, 2018 at 7:36 PM Slide  wrote:
>
>> Can you file an issue in JIRA?
>>
>> On Tue, Feb 13, 2018 at 7:10 PM red 888  wrote:
>>
>>> This is my password: "ASD123$567"
>>>
>>> This doesn't work
>>>
>>> withCredentials([usernamePassword(credentialsId: 'creds',
>>> usernameVariable: 'myuser', passwordVariable: 'mypass')]) {
>>> sh "some command --username ${svnuser} --password ${mypass}"
>>> }
>>>
>>>
>>> What i see in the output is mypass is not obfuscated and most
>>> importantly it looks like its getting cut off after the "$" so its only
>>> showing ASD123
>>>
>>> --
>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/16bfd2b1-ad71-4326-ac3c-7693b9c71331%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVf9g8GN2BPSGdt9jSR1t%2Bj7%2BzoC%2B711cPQzOO1duu6WYQ%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGpVxCy1LzOh2KATKNktvnWCYUDEzRnXeQyjN3VAW0iDA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4i7AZYBVUcwy9tWeTXA4eETgAx_br5Ov0QUzgNxJymXhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Shared library groovy code not executing on slave

2018-02-10 Thread niristotle okram
I kind of remember this scenario... can you
Share the sample snippet on what you are doing?

On Sat, Feb 10, 2018 at 11:00 AM Jasmitha M  wrote:

> I've written shared library to check out code from git using git block and
> echo ip address of node using shell command. It is being executed on slave.
> Git block seems to be executed successfully. Code is getting cloned on
> slave. But shell command gives master ip rather than slave ip. Could anyone
> say why it is not giving slave ip?
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/18e79617-b30a-47ff-84ff-a5d5c24eadbe%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jqs5fEoyN26Cp0STv7NM560gydhHNxRdv30Mcp%3D9b1cA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to keep a running docker container after a build fails?

2018-02-07 Thread niristotle okram
Pausing a build comes with an expense of a busy executor.

Why not file a JIRA ticket to the plugin folks, might help someone someday.

On Wed, Feb 7, 2018 at 1:47 PM, pisymbol . <pisym...@gmail.com> wrote:

>
>
> On Wed, Feb 7, 2018 at 2:43 PM, niristotle okram <nirish.ok...@gmail.com>
> wrote:
>
>> for debugging,
>> why not put some more echo/ls commands to check if the file you are
>> looking is there or not from the container.
>>
>
> Sure, but it takes 30+ minutes just to get to this spot.
>
>
>>
>> The documentation says:
>> *Takes an image ID or symbolic name which must already have been pulled
>> locally and starts a container based on that image. Runs all
>> nested sh steps inside that container. The workspace is mounted read-write
>> into the container. *
>>
>> Did you checked if the workspace have the file?
>>
>> A really brut way, if you want to really shell into the container, might
>> be to docker run the same image, in the workspace mnaually and try to
>> trigger the steps manually. Else, use try and catch to not keep the
>> container enaged even if the main execution fails.
>>
>
> But I can't really reproduce the Jenkins run-time though.
>
> I'm really surprised you can't pause the build or have a flag that says
> don't kill the container at the end of the build. This should really be a
> feature for docker based builds.
>
> -aps
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CAPpy_fGNZ90Wa9nOx6n3h2m6N0bsvpCjHha
> H0vqdyaHVcM3SBQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPpy_fGNZ90Wa9nOx6n3h2m6N0bsvpCjHhaH0vqdyaHVcM3SBQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4g-kaBN6Wy3iQQKcifV9LY8-30nUBgYrcLX0TptOZr2yg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to keep a running docker container after a build fails?

2018-02-07 Thread niristotle okram
for debugging,
why not put some more echo/ls commands to check if the file you are looking
is there or not from the container.

The documentation says:
*Takes an image ID or symbolic name which must already have been pulled
locally and starts a container based on that image. Runs all
nested sh steps inside that container. The workspace is mounted read-write
into the container. *

Did you checked if the workspace have the file?

A really brut way, if you want to really shell into the container, might be
to docker run the same image, in the workspace mnaually and try to trigger
the steps manually. Else, use try and catch to not keep the container
enaged even if the main execution fails.

i haven't used these DSL, so these are some of my thoughts

HTH,



On Wed, Feb 7, 2018 at 12:44 PM, pisymbol  wrote:

>
>
> On Monday, February 5, 2018 at 3:16:04 PM UTC-5, pisymbol wrote:
>>
>> withDockerContainer(image: "centos:7", args: "--privileged") {
>> stage ('Negotiate World Peace') {}
>> stage ("Cure Cancer") {}
>>
>>
> Anyone do this? I mean how does one debug build bugs in a docker container
> other than trial and error?
>
> -aps
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/a851cbd9-364c-4ce8-bd22-a972debce310%40googlegroups.
> com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4i5mphMvg8YwT3Kqu%2Be-n9KPN%3D5CxDshooyLooeOS-Fug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins inside Tomcat

2018-02-06 Thread niristotle okram
i havent used tomcat for url redirects, but here is one resource in github
which 5 people seems to have liked. Can try this out if you have a test
setup.

https://gist.github.com/jtgasper3/10501274



On Mon, Feb 5, 2018 at 2:07 PM, Zane Blalock  wrote:

> I've set up a Jenkins environment inside of Tomcat as a webapp, and I have
> it running rather well.
>
> However, I noticed I cannot get tomcat to redirect jenkins to https -- or
> anything for that matter - such that I've setup the web.xml and server.xml
> properly - I can get to the https setup just fine, but the redirectPort="#"
> portion doesn't seem to do anything with Tomcat.
>
> Does anyone know if Jenkins has something that overrides the settings of
> Tomcat like this or other than setting up the two xml files (security
> constraints and connectors with redirects) is there something I'm missing
> when running jenkins through Tomcat?
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/12a1d000-8cce-46f9-b3da-994065da700d%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jBjNvKgKfN7mySi7Sq0kUhskUTFVA%2BbbOyV_6%2B-Z6SGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: gcloud ssh pass key file as an environment var?

2018-02-01 Thread niristotle okram
checkout your SO post
https://stackoverflow.com/questions/48569560/read-the-output-of-a-secret-text-file/48572961#48572961


On Thu, Feb 1, 2018 at 3:58 PM, red 888  wrote:

> I tried setting GOOGLE_APPLICATION_CREDENTIALS to the path of my json key
> but it doesn't work:
>
> + gcloud auth activate-service-account
> ERROR: (gcloud.auth.activate-service-account) argument --key-file:
> Must be specified.
>
>
> Many other commands support this env. Is there an env that gcloud auth
> supports? Or do I have to pass it in manually
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/8c81fdb9-9521-45c3-ae30-08b51ba36ee6%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iLjwj5L%3D3ut15PrydmRcfHsgS%2BW9Gxq6Q7LAHew3nSDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cucumber-Gherkin Ruby Browser close

2018-01-31 Thread niristotle okram
How do you think, someone can possibly help with the below statement?

Please have some common sense while asking for help.

On Thu, Feb 1, 2018 at 12:05 AM Anitha P  wrote:

> When I do a build a Jenkins my browser window atutomatically closes before
> the script . Can some one help me resolve this issue ?
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/050c6288-2514-4af2-858b-99f864128471%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4gU27ZZ6hp49Z9kBkhufWNHqNC4oJ%3DLVA-Ch1%2BUKJX14g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Linting Jenkinsfile

2018-01-15 Thread niristotle okram
Somethings that you need to add in your help request:
1. How are connecting to the server cli/curl?
2. What kind of jenkinsfile your are attempting to lint? Declarative or
scripted pipeline?

On Tue, Jan 16, 2018 at 1:34 AM Mayur Nagekar 
wrote:

> Hello all,
>
> I have been trying to find a way to lint Jenkinsfile and came across
> https://jenkins.io/doc/book/pipeline/development/#linter but this hasn't
> helped unfortunately.
> Every time I try to run the command, I get
>
> bash: declarative-linter: command not found
>
> Looks like there are some additional installs (may be plugins) that need
> to happen on jenkins server? I'd appreciate if someone could enlighten me
> on the same.
>
> Many thanks,
> Mayur
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/0c9846b3-3bc6-44a6-8de3-5a3ab6cc9d91%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iw3yyUW7zQWGjb6yj3SwG%2BRHzBeRxJVj_D5MoMCOGdbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins overwriting config.xml on startup

2017-12-12 Thread niristotle okram
Can you elaborate the part: "I add a docker cloud" ?

On Tue, Dec 12, 2017 at 2:10 PM, Wendell Beckwith 
wrote:

> I've installed the jenkins 2.94 as both a war file and a docker container
> with the jenkins_home mapped to a local directory and I can startup jenkins
> fine.  I then add the suggested plugins, admin user, blue ocean and the
> docker plugin.  After a restart I add a docker cloud and all is well.
> However, if I stop and restart the container/war file then I can see that
> my config.xml which is approx 2300 bytes is replaced with a 1800 byte
> file.  Effectively the docker cloud portion is removed and an emply
>  element is there.  What config option am I likely missing to get
> my changes to persist restarts?
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/5b2dd1a0-6aa7-4b86-8e94-fbcc9a506500%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jSw%3DMBi%3DYf7OcTqJ1egTr4VdyZA8gBhYeGnLBdpoakyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Suggestions for a jenkins dashboard

2017-11-26 Thread niristotle okram
Thanks for the suggestion, i will definitely give a try on that!

On Sun, Nov 26, 2017 at 7:17 AM Baptiste Mathus  wrote:

> Being the maintainer of Radiator View Plugin, I'm not very objective, but
> I can at least confirm it seems like it would work very fine for your goal.
> We do have it deployed and used on our instance, and it works well for us.
> And it was also used by many teams, and probably still is, in my previous
> company.
>
> My 2 cents
>
> 2017-11-08 18:00 GMT+01:00 James Telfer :
>
>> We use Atlasboard (https://bitbucket.org/atlassian/atlasboard) along
>> with the Atlasboard Jenkins Package (
>> https://github.com/incentro/atlasboard-jenkins-package) to display build
>> status.
>>
>> Pretty simple to get set up as it goes, and the views are driven by
>> creating views in Jenkins, so very easy to customise what gets shown where
>> one it's set up.
>>
>> On Monday, 6 November 2017 16:43:43 UTC, ok999 wrote:
>>>
>>> hi all,
>>>
>>> i am looking for suggestion on some simple (yet proven) jenkins
>>> dashboards. I don't want to spend time on somethings that's already there.
>>>
>>> I am just trying to cast some job status, nothing fancy. But being if
>>> fancy is a feature, i will take it :)
>>>
>>> Thanks !
>>>
>> --
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/4f36d0c0-2c65-4b70-9dab-d55b3c8268e2%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6sJ%3DhGxWz%3DGHbk3Urc%3D5r2sXQhFbzqNuRNkA4VR6irTw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4g6JJ9qHaL-jbT1QVriFH2Fx1wbp2piW-7sXrpsc%2BkWZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: After checkout from repositoy Jenkins will not start Windows batch command

2017-10-10 Thread niristotle okram
Without any logs, one cannot give you meaningful suggestions. What does the
xcopy step says in the log?

On Mon, Oct 9, 2017 at 4:48 AM 'S. G.' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> I am new to Jenkins. I started with one simple test:  I created a
> freestyle job on a slave/node that checks out my sources from a repository
> and should does a Windows xcopy from the jenkins repository to a directory.
> The checkout works - all sources are pulled form the repository to the
> jenkins workspace. The job run ("Build now") finished with success.
> However jenkins did not execute the copy operation. If I just do the copy
> operation in one separate jenkins job it works fine.
>
> Any idea?
>
> Many thanks!!
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/e5b8cf0c-0dbb-43e5-8ba0-8b0b3161fdfe%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hSrwDf5vucGYSOxA0OkRH_wgVN7Dg7AYb_cVdYUY7C2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add Dhttps.protocols=SSLv3,TLSv1.1,TLSv1.2 in Jenkins

2017-09-12 Thread niristotle okram
that depends on how you enabled the https (apache/nginx...?) ..
Understanding a little on SSL wont hurt, instead of posting non-jenkins
questions in a jenkins users distro.

On Tue, Sep 12, 2017 at 1:53 PM, Prasu S  wrote:

> We recently changed Jenkins from http to https . Where should
> Dhttps.protocols=SSLv3,TLSv1.1,TLSv1.2  setup in Jenkins ? TIA
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/27253e06-bb52-4cd8-b911-a702811c383f%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jK2__iC3hKTU337dGzsRGWSADpqq8UE71J_Wv9re3LYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pinning a node to a particular workspace in jenkins pipeline?

2017-09-05 Thread niristotle okram
i have ran into this in the past, but we manage to solve this by assigning
a workspace for each build. there is a dsl -  ws().

Another thing regarding the executor while waiting for user input, use the
input(), outside of node{}.

https://stackoverflow.com/questions/37831386/jenkins-pipeline-input-step-blocks-executor






On Tue, Sep 5, 2017 at 2:14 PM, Craig Silverstein 
wrote:

> I have a jenkins pipeline script that does something like this:
> ```
> node('master') { do_stuff(params.FOO); }
> prompt "Look good?"
> node('master') { do_more_stuff(); }
> ```
>
> `do_more_stuff()` depends on workspace-changes made by `do_stuff()` (files
> created, repos synced, etc).
>
> This worked fine when only one job could run at a time, but we recently
> changed it so you could run two jobs concurrently, and now have a problem
> that a single job could use different workspaces for `do_stuff` and
> `do_more_stuff`.  That is, job A could use workspace@1 for do_stuff but
> workspace@2 for do_more_stuff, if job B was using workspace@1 at the
> time.  This causes the job to behave badly since the workspace isn't set up
> properly for `do_more_stuff`.
>
> I could solve this by doing
> ```
> nost('master') {
> do_stuff(...);
> prompt ...
> do_more_stuff(...);
> }
> ```
> but I'm trying to free up the executor while waiting for the prompt to be
> executed (it could be a while).
>
> Are there any other ways to solve this problem?  What are the best
> practices here?  I feel I must be missing something in how `node` is
> supposed to be used.
>
> craig
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/0cc87af6-82e8-4e17-9398-1fa93e9a684c%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4h07OfOMSxG8dW8U2dBXYVRB_K3_egVazygb8%3DRntSdSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I need your help! Please tell me how you and/or your team uses Jenkins

2017-08-29 Thread niristotle okram
i think, first MS should roll out an official plugin to integrate TFS
(on-prem) with jenkins. There are certain things that doesn't work with
jenkins tfs plugin with on-prem tfs.

* The major issue being: build status indicator on TFS (branch/PR )
* If using TFS to use build queuing on Jenkins, there is no service hook to
trigger PR


On Tue, Aug 29, 2017 at 9:43 AM, Nicole [MSFT] 
wrote:

> My name is Nicole and I work on the engineering team for Developer Tools
> at Microsoft. I'm working on improving our support for Jenkins in our tools
> and in Azure and I need your help! I'm trying to understand what are the
> most time-consuming and/or painful tasks when using Jenkins and whether or
> not you've considered using Jenkins in the cloud.
>
> Please take just a few, short minutes and tell me about your Jenkins
> usage: *Start Survey* 
>
> Thank you so much for your time and please feel free to reach out with any
> questions you might have at nicole.br...@microsoft.com.
>
> Thanks,
> Nicole
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/9649d547-3df6-4cda-824b-c0fb121d3046%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hpU-dGzKO7YJxgNLuO6N%2BDh0fVRkTazEq04gMfL_b1dQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Scoping of a groovy variable inside a closure in try() to access from catch()

2017-08-28 Thread niristotle okram
thanks, that seems to make sense with what i am noticing. Seems like the
root cause is that, the variable is not assigned if the 'shell' step fails
/ non 0 exit status.
i am trying to assign the variable with the shell scripts stdout. I would
like to capture the stacktract so that it prints the shell scripts
stdout/stderr in the mail, rather than the generic "'hudson.AbortException:
script returned exit code 1'"


On Mon, Aug 28, 2017 at 2:32 PM, Slide <slide.o@gmail.com> wrote:

> You don't need to initialize to null outside the try, just "def val_log"
> is fine. I've used this in my pipeline and it works fine. Can you verify
> that your pipeline is getting to the point where val_log is assigned, and
> also verify it's not assigned anywhere else?
>
> On Mon, Aug 28, 2017 at 12:23 PM niristotle okram <nirish.ok...@gmail.com>
> wrote:
>
>>
>>
>> down votefavorite
>> <https://stackoverflow.com/questions/45924945/scoping-of-a-groovy-variable-inside-a-closure-in-try-to-access-from-catch#>
>>
>> how do i access the value of a variable assigned inside a closure within
>> a try() in the catch() statement. here is what i am trying to achieve but i
>> keep getting the initialization value that i assigned.
>>
>> node('linux') {
>>
>> def val_log = null;
>>
>> try{
>>
>> stage('abc') {
>>
>> val_log = //some steps that generates a log that i want
>>
>> }
>>
>> println '$val_log'  //this works
>>
>> }
>>
>> catch(err)
>> stage('mail') {
>> // code to send email notification with '$val_log'
>> //--> the $val_log returns 'null' and not the
>> //value assigned in the try() part.
>> }}
>>
>> Is there a way, to get the value for the variable inside the catch()
>> statement.
>>
>> Thank you...
>>
>>
>>
>> --
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/jenkinsci-users/CAPzcO4iK8F4vJ_D-0n2Gpnxph99Km9RCFQ52jtj9OqKY-
>> E7K-Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iK8F4vJ_D-0n2Gpnxph99Km9RCFQ52jtj9OqKY-E7K-Q%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CAPiUgVcpNOzJnS0GEktkFaONiHHOf
> FFfdB6LBJZmkBrB14JYzg%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcpNOzJnS0GEktkFaONiHHOfFFfdB6LBJZmkBrB14JYzg%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4g753cF1T%3DOPi%3Da26F%3DFkGxf75tKKs005LV5pg2iTdvAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Scoping of a groovy variable inside a closure in try() to access from catch()

2017-08-28 Thread niristotle okram
down votefavorite


how do i access the value of a variable assigned inside a closure within a
try() in the catch() statement. here is what i am trying to achieve but i
keep getting the initialization value that i assigned.

node('linux') {

def val_log = null;

try{

stage('abc') {

val_log = //some steps that generates a log that i want

}

println '$val_log'  //this works

}

catch(err)
stage('mail') {
// code to send email notification with '$val_log'
//--> the $val_log returns 'null' and not the
//value assigned in the try() part.
}}

Is there a way, to get the value for the variable inside the catch()
statement.

Thank you...

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iK8F4vJ_D-0n2Gpnxph99Km9RCFQ52jtj9OqKY-E7K-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Information requested to understand usage of Jenkins for Informatica || ETL tool

2017-08-02 Thread niristotle okram
Heard about shell script?




On Tue, Aug 1, 2017 at 5:42 AM Neha Garg  wrote:

>
> Hi Team,
>
>
>
> I was going through the link:
> http://hopsas.com/products/informatica-powercenter-continuous-delivery-solution/
>
> I am an Informatica developer and looking for some help to understand how
> we can use Jenkins for CICD implementation in Informatica.
>
>
>
> I need to know how we can  establish a connection between Jenkins and
> Informatica Repository. Is there any plugin for same?
>
> Also, How can I use pmrep command   for this?
>
>
>
> Thanks and Regards,
>
> Neha Garg
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAD_1JMHpBbGE6XFkKX6WuOPr%2BLDOWOC808Mp0CCEqHjEchX1gA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jwBK5sm%2BcaMTkwWYTH_ERHqEmuMzda1jKgcP8f7%2BYGrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: parse out text from the console log, to be used in the letter stage of the build

2017-07-25 Thread niristotle okram
Thanks - the 'returnStdout' did it along with some groovy code to parse out
the text from the String

On Mon, Jul 24, 2017 at 7:05 PM, Slide <slide.o@gmail.com> wrote:

> If you are running using bat or sh, you could use returnStdout to get the
> contents of the log (this will stop it from printing to the log I believe).
> Then you could parse the returned contents for the value you are looking
> for. See https://jenkins.io/doc/pipeline/steps/workflow-
> durable-task-step/#code-sh-code-shell-script
>
> On Mon, Jul 24, 2017 at 4:03 PM niristotle okram <nirish.ok...@gmail.com>
> wrote:
>
>> Well, Its not available to assign as a param ... it's something generated
>> only when the build runs
>>
>> On Mon, Jul 24, 2017 at 4:17 PM J0991 <jason.lem...@csquaredsystems.com>
>> wrote:
>>
>>> One possibility may be assigning the task name as an environment variable
>>> during the initial job.
>>> You could then access this environment variable from any subsequent jobs.
>>>
>>> More information on  Jenkins environment variables can be found here
>>> <https://jenkins.io/doc/pipeline/tour/environment/>  .
>>>
>>>
>>>
>>> --
>>> View this message in context: http://jenkins-ci.361315.n4.
>>> nabble.com/parse-out-text-from-the-console-log-to-be-
>>> used-in-the-letter-stage-of-the-build-tp4900671p4900782.html
>>> Sent from the Jenkins users mailing list archive at Nabble.com.
>>>
>>> --
>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/jenkinsci-users/1500929850006-4900782.post%40n4.nabble.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Sent from mobile device, excuse typos if any.
>>
>> --
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/jenkinsci-users/CAPzcO4hXo1aAO%3D9a31G165mv5eKQ__L_
>> 810OJPHDcjPC6UF6vg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hXo1aAO%3D9a31G165mv5eKQ__L_810OJPHDcjPC6UF6vg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CAPiUgVffGCz0uDp5WFcMQfvbVzOym
> 5D6eGq5ieK1t2z4Cy9pNw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVffGCz0uDp5WFcMQfvbVzOym5D6eGq5ieK1t2z4Cy9pNw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4h%3DYZ2%3DZXR56qK342BMTg3vWqA0JYc0D5VtPJz4syktCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


parse out text from the console log, to be used in the letter stage of the build

2017-07-19 Thread niristotle okram
i have the below entry in the console log


 [echo] Testing the deploy
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request ID for the current deploy task: 0Afg00kyGxDCAU
[sf:deploy] Waiting for server to finish processing the request...


=


i am trying to get this task name:  0Afg00kyGxDCAU


so that i can use it in my build's letter stages...



Is there a way that someone have already did this?







-- 
Regards

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4ixPmE5KR-cz6WZTxf7dqRpAqErybYhJbKrvnBpz0GPpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Stickers

2017-07-14 Thread niristotle okram
On a lighter note: Does sticking a jenkins sticker, increases productivity
or skill level??? 




On Fri, Jul 14, 2017 at 12:31 PM Aldrin Leal  wrote:

> Guys,
>
> (Brazilian living in Envigado here)
>
> If you want you can ship to my mailbox in US so I can get it here with a
> lower cost
>
> On Jul 14, 2017 11:57, "Jason LeMauk" 
> wrote:
>
> Hi Alyssa!
>
>
>
> I just saw some information on LinkedIn actually about Jenkins World. I
> wish I could be there, however I will not be attending this year.
>
> I am located in the North-Eastern United States. Is there an email best to
> reach you at? We’d love to have some dev stickers!
>
>
>
> Thank you for your help,
>
> Jason
>
>
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Alyssa Tong
> *Sent:* Friday, July 14, 2017 12:15 PM
> *To:* jenkinsci-users 
> *Subject:* Re: Jenkins Stickers
>
>
>
> Hi Jason,
>
>
>
> can you let me know where you are located? Will you be at Jenkins World
> ? If you are we'll have
> plenty of stickers ready for you.
>
>
>
> thnx
>
> alyssa
>
>
>
> On Wed, Jul 12, 2017 at 9:42 AM, J0991 
> wrote:
>
> hello!
>
> I have been working these past few months to get Jenkins going for our
> companies projects. I'd also love to get a few stickers for the team here.
> If anybody else may have any stickers available my team would gladly take
> them!
>
> Thank you,
> Jason
>
>
>
> --
> View this message in context:
> http://jenkins-ci.361315.n4.nabble.com/Jenkins-Stickers-tp4900135p4900450.html
> Sent from the Jenkins users mailing list archive at Nabble.com.
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/1499877762688-4900450.post%40n4.nabble.com
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAMBsfbtsF9eWpRhTLgWdN83tzX5vdQO_iyZUXdsZd6Na80KB8Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/BY2PR12MB0599FD21EC5531E2299DEEE389AD0%40BY2PR12MB0599.namprd12.prod.outlook.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CALpo8Nvdy2ghZ2vf9-V7HLSQ5%2B0H4BUuk28ECOi35-%3D_W%2Bws8A%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jGXBb78Piz_gh6Sd55%2B5%2BHckogsKJ5JTnw3LERicdrug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Tfs event payload

2017-06-29 Thread niristotle okram
Have anyone tried or used, the tfs payload from the service hook in
jenkins? I am trying to get the branch name from the 'event' , so that i
can use it in the pipeline script...


Thanks !!!
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4h-UOC6ApQgnNtY5Mq3n%2BiUXCRBgJ6_qk38RRe408NWSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins IIS Reverse Proxy

2017-05-03 Thread niristotle okram
Does this means that your reverse proxy is not working?
And not just the error on the jenkins page

On Wed, May 3, 2017 at 12:28 PM Terry Lacy  wrote:

> For whatever it's worth, adding another "/" to that URL still results in a
> 404.
>
> Terry
>
> On Wednesday, May 3, 2017 at 10:39:04 AM UTC-6, Stephen Connolly wrote:
>
>>
>> On 3 May 2017 at 16:30, Terry Lacy  wrote:
>>
>>>
>>> /administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/testForReverseProxySetup/https:/
>>> our.server.name/manage/
>>>
>>
>> That looks to be the malformed url. you should want to see why it is
>> converting the URL to "https:/our.server.name" and not "
>> https://our.server.name; which would be resulting in the URL being
>> treated as relative rather than absolute
>>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/afcd559b-0d82-47b4-8603-9f20e56171a5%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iv94CfEQYQgP71Yz4iAvwdJpPaqS2hU0DzePFbvn%3DyMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: using .each with closure in jenkins pipeline - @NonCPS method

2017-04-10 Thread niristotle okram
I think i am almost there now...
Have to ripe off certain logic from the noncps method ...and use the
readfile and writeFile dsl.

Keeping fingers cross as i type in :)


On Mon, Apr 10, 2017 at 1:23 AM Stephen Connolly <
stephen.alan.conno...@gmail.com> wrote:

> On Mon 10 Apr 2017 at 06:02, niristotle okram <nirish.ok...@gmail.com>
> wrote:
>
> I have seen that mentioned somewhere in the past. But i am baffled as to
> why things works in the master and fails in the slave/agent.
>
> Can anyone spot where i am faulting. this have owned me for days now :(
> ... i am trying to generate an XML file. based on the data provided by a
> JSON file.
>
>
> The pipeline snippet is
>
> *import groovy.xml.**
> *import groovy.json.JsonSlurper*
>
> *node('slave1') {*
> *  deleteDir()*
>
> *  stage('Checkout') {*
> *checkout([$class: 'GitSCM', branches: [[name: '*/master']],
> doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [],*
> *userRemoteConfigs: [[credentialsId:
> 'b27f7cb2-efa8-496a-90d8-825b9332bf44', url: 'g...@somerepo.git']]])*
> *  }*
>
> *  writeFile file: "MyFile.XML", text: GenerateXML()//calling the
> method to generate the XML*
>
>
> *  println "Generated the manifest XML"*
> *}*
>
>
> *@NonCPS*
> *def GenerateXML() {*
> *  /**
> *  parsing the obj.json file*
> *  */*
> *  def currentws = pwd()*
> *  println currentws*
> *  def jsonSlurper = new JsonSlurper();  *
> *  //def fileReader = new BufferedReader(new
> FileReader("${currentws}/objects.json"))  //the file location need to
> change in the actual implementation*
>
>
> This won't work as groovy always executes on the master. You need to use
> FilePath to get the remote file
>
> *  def fileReader = readFile "${currentws}/objects.json"  // ^^avoided the
> above line to use the pipeline DSL *
>
>
> Afaik you can put CPS calls inside nonCPS
>
> *  def parsedData = jsonSlurper.parse(fileReader)*
> *  /**
> *  creating the xml*
> *  */*
> *  // def writer = new FileWriter("${currentws}/sampleManifest123.XML")*
> *  def builder = new StreamingMarkupBuilder()*
> *  builder.encoding = 'UTF-8'*
> *  def xml = builder.bind {*
> *mkp.xmlDeclaration()*
> *mkp.declareNamespace('udm.DeploymentPackage'
> :'http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema>')*
> *mkp.declareNamespace('powercenter.PowercenterXml'
> :'http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema>')*
> *delegate."udm.DeploymentPackage"(version:'$BUILD_NUMBER',
> application: "sampleApp"){*
> *  delegate.deployables {*
> *parsedData.each { index, obj ->*
> *  it."powercenter.PowercenterXml"(name:obj.name
> <http://obj.name>, file:obj.file) {*
> *delegate.scanPlaceholders(true)*
> *delegate.sourceRepository(obj.sourceRepository)*
> *delegate.folderNameMap {*
> *  obj.folderNames.each { name, value ->*
> *it.entry(key:name, value)*
> *  }*
> *}*
> *delegate.objectNames {*
> *  delegate.value(obj.objectName)*
> *}*
> *delegate.objectTypes {*
> *  delegate.value(obj.objectType)*
> *}*
> *  }*
> *}*
> *  }*
> *  delegate.dependencyResolution('LATEST')*
> *  delegate.undeployDependencies(false)*
> *}*
> *  }*
>
> *}*
>
>
>
>
>
> The input json file looks like:
>
> *{"workflows1":*
> *  {*
> *"name": "/wf_multifolder",*
> *"file": "release1/wf_multifolder.XML",*
> *"objectName": "wf_multifolder.XML",*
> *"objectType": "workflow",*
> *"sourceRepository": "DEV2",*
> *"folderNames": { "multifolder": "{{multifolder}}","agent1":
> "{{agentx}}" }*
> *  },*
> *  "workflows1":*
> *{*
> *  "name": "/wf_multifolder",*
> *  "file": "release1/wf_multifolder.XML",*
> *  "objectName": "wf_multifolder.XML",*
> *      "objectType": "workflow",*
> *  "sourceRepository": "DEV2",*
> *  "folderNames": { "multifolder": "{{multifolder}}","agent1":
> "{{agentx}}" }*
> *}*
> *}*
>
>
>
>
>
>
> The current behaviour is that, the method just works fine in my
> groov

Re: using .each with closure in jenkins pipeline - @NonCPS method

2017-04-09 Thread niristotle okram
I have seen that mentioned somewhere in the past. But i am baffled as to
why things works in the master and fails in the slave/agent.

Can anyone spot where i am faulting. this have owned me for days now :( ...
i am trying to generate an XML file. based on the data provided by a JSON
file.


The pipeline snippet is

*import groovy.xml.**
*import groovy.json.JsonSlurper*

*node('slave1') {*
*  deleteDir()*

*  stage('Checkout') {*
*checkout([$class: 'GitSCM', branches: [[name: '*/master']],
doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [],*
*userRemoteConfigs: [[credentialsId:
'b27f7cb2-efa8-496a-90d8-825b9332bf44', url: 'g...@somerepo.git']]])*
*  }*

*  writeFile file: "MyFile.XML", text: GenerateXML()//calling the
method to generate the XML*

*  println "Generated the manifest XML"*
*}*


*@NonCPS*
*def GenerateXML() {*
*  /**
*  parsing the obj.json file*
*  */*
*  def currentws = pwd()*
*  println currentws*
*  def jsonSlurper = new JsonSlurper();  *
*  //def fileReader = new BufferedReader(new
FileReader("${currentws}/objects.json"))  //the file location need to
change in the actual implementation*
*  def fileReader = readFile "${currentws}/objects.json"  // ^^avoided the
above line to use the pipeline DSL *
*  def parsedData = jsonSlurper.parse(fileReader)*
*  /**
*  creating the xml*
*  */*
*  // def writer = new FileWriter("${currentws}/sampleManifest123.XML")*
*  def builder = new StreamingMarkupBuilder()*
*  builder.encoding = 'UTF-8'*
*  def xml = builder.bind {*
*mkp.xmlDeclaration()*
*mkp.declareNamespace('udm.DeploymentPackage'
:'http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema>')*
*mkp.declareNamespace('powercenter.PowercenterXml'
:'http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema>')*
*delegate."udm.DeploymentPackage"(version:'$BUILD_NUMBER', application:
"sampleApp"){*
*  delegate.deployables {*
*parsedData.each { index, obj ->*
*  it."powercenter.PowercenterXml"(name:obj.name <http://obj.name>,
file:obj.file) {*
*delegate.scanPlaceholders(true)*
*delegate.sourceRepository(obj.sourceRepository)*
*delegate.folderNameMap {*
*  obj.folderNames.each { name, value ->*
*it.entry(key:name, value)*
*  }*
*}*
*delegate.objectNames {*
*  delegate.value(obj.objectName)*
*}*
*delegate.objectTypes {*
*  delegate.value(obj.objectType)*
*}*
*  }*
*}*
*  }*
*  delegate.dependencyResolution('LATEST')*
*  delegate.undeployDependencies(false)*
*}*
*  }*

*}*





The input json file looks like:

*{"workflows1":*
*  {*
*"name": "/wf_multifolder",*
*"file": "release1/wf_multifolder.XML",*
*"objectName": "wf_multifolder.XML",*
*"objectType": "workflow",*
*"sourceRepository": "DEV2",*
*"folderNames": { "multifolder": "{{multifolder}}","agent1":
"{{agentx}}" }*
*  },*
*  "workflows1":*
*{*
*  "name": "/wf_multifolder",*
*  "file": "release1/wf_multifolder.XML",*
*  "objectName": "wf_multifolder.XML",*
*  "objectType": "workflow",*
*  "sourceRepository": "DEV2",*
*  "folderNames": { "multifolder": "{{multifolder}}","agent1":
"{{agentx}}" }*
*}*
*}*






The current behaviour is that, the method just works fine in my
groovyConsole but fails big time in jenkins, The file "*MyFile.XML"  is
created in the workspace. But it have the same content as the input json
file... Its not performing the loop. *










On Sun, Apr 9, 2017 at 11:00 PM, Mark Waite <mark.earl.wa...@gmail.com>
wrote:

> As far as I know, Jesse's advice was to use the more Java like iteration
> technique, rather than for / each.
>
> Mark Waite
>
> On Sun, Apr 9, 2017 at 7:29 PM niristotle okram <nirish.ok...@gmail.com>
> wrote:
>
>> Is anyone aware of iterating/looping either using a *for / each* inside
>> a NonCPS method in a master slave environment?
>>
>> I am using the "readFile", DSL to read from the slave's workspace. And i
>> parsing it via the jsonsluper. I am unable to loop through the object.
>>
>> Have anyone done this successfully?
>>
>>
>> On Fri, Apr 7, 2017 at 12:36 PM, niristotle okram <nirish.ok...@gmail.com
>> > wrote:
>>
>> Can anyone say, if the issue of using '.each{ }' , with the closure in
>> jenkins https://iss

Re: using .each with closure in jenkins pipeline - @NonCPS method

2017-04-09 Thread niristotle okram
Is anyone aware of iterating/looping either using a *for / each* inside a
NonCPS method in a master slave environment?

I am using the "readFile", DSL to read from the slave's workspace. And i
parsing it via the jsonsluper. I am unable to loop through the object.

Have anyone done this successfully?


On Fri, Apr 7, 2017 at 12:36 PM, niristotle okram <nirish.ok...@gmail.com>
wrote:

> Can anyone say, if the issue of using '.each{ }' , with the closure in
> jenkins https://issues.jenkins-ci.org/browse/JENKINS-26481
>
> also affect a NonCPS method??
>
> I find it works okay in a master only env.
>
>
>


-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4idZco8oAQcWpRocE5XuRw%3DCrph7oaCqFnQw7-0W-jmAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


using .each with closure in jenkins pipeline - @NonCPS method

2017-04-07 Thread niristotle okram
Can anyone say, if the issue of using '.each{ }' , with the closure in
jenkins https://issues.jenkins-ci.org/browse/JENKINS-26481

also affect a NonCPS method??

I find it works okay in a master only env.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iC9oFOotQjM4aAywoGTX27jumLJBYBKp2OmvsJVw%2BpSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Converting a string parameter to a List of Maps

2017-04-06 Thread niristotle okram
Hey Bill:

yes, got things to work with the input being parsed from a json. BUT only
in the master. Things get messy and dark, when its a distributed env
(master-slave)

problem:
 jenkins workflow script doesn't like java api's. So IO things like

  // def fileReader = new BufferedReader(
  //   new FileReader("${currentws}/objects.json"))

&

  def writer = new FileWriter("${currentws}/okram.XML")

DOESN"T WORK..

I think they want me to use

  def fileReader = readFile "${currentws}/objects.json"
def parsedData = jsonSlurper.parse(fileReader)

&

def xmlwriter = writeFile file: '${currentws}/okram.XML', text: ''


But the problem here is that nothing is shows up although the execution of
the NonCPS method completes. There is no trace of the file.









On Mon, Mar 27, 2017 at 7:31 PM Bill Dennis  wrote:

> I think it is failing on the call to the generateXML() method - is it
> defined in your job and how is it defined, what parameters does it expect?
>
> BTW, be aware that the Groovy 'Eval' will allow anyone to execute whatever
> Groovy code they would like to put in the input parameter. This line:
>
> def inputMap = Eval.me("$input")
>
> Your local IT security people may not like this :-)
>
> Have you considered passing the List/Map as a JSON structure on the input?
> Seems safer, unless there is a better way to secure the groovy eval.
>
> --Bill
>
> On Sunday, 26 March 2017 20:06:16 UTC+1, ok999 wrote:
>
> hi,
>
> Can anyone let me know me, what is wrong here. I have the pipeline script,
> and i am trying to pass a string parameter when the job is triggered. The
> parameter will then be converted into a List of maps, so that i can iterate
> through it.
>
> Here is what i am trying:
>
>
> String input = "$objectListParameter"  //This is from the job's input
> String parameter
> println input
> def inputMap = Eval.me("$input")
> def objectList=[] //initialize an empty List
> objectList << inputMap
> println objectList
> println objectList.getClass()
> //call the method
> generateXML(objectList)  // This is the method marked with @NonCPS
>
>
>
> The input parameter, ($objectListParameter) looks something like this:
>
> [[name: 'a', file: 'fileA' , objectName: 'wf_A' , objectType: 'workflow',
> sourceRepository: 'DEV2', folderNames: [srcFolder1: 'TgtFolder1',
> srcFolder2: 'TgtFolder2']],[ name: 'B' , file: 'fileB' , objectName: 'wf_B'
> , objectType: 'workflow', sourceRepository: 'DEV2', folderNames:
> [srcFolder4: 'TgtFolder4', srcFolder3: 'TgtFolder3']]]
>
>
> In the jenkins console Log, this the snippet
>
>
>
>
>
> [Pipeline] echo[[name: 'a', file: 'fileA' , objectName: 'wf_A' , objectType: 
> 'workflow', sourceRepository: 'DEV2', folderNames: [srcFolder1: 'TgtFolder1', 
> srcFolder2: 'TgtFolder2']],[ name: 'B' , file: 'fileB' , objectName: 'wf_B' , 
> objectType: 'workflow', sourceRepository: 'DEV2', folderNames: [srcFolder4: 
> 'TgtFolder4', srcFolder3: 'TgtFolder3']]][Pipeline] echo[[{name=a, 
> file=fileA, objectName=wf_A, objectType=workflow, sourceRepository=DEV2, 
> folderNames={srcFolder1=TgtFolder1, srcFolder2=TgtFolder2}}, {name=B, 
> file=fileB, objectName=wf_B, objectType=workflow, sourceRepository=DEV2, 
> folderNames={srcFolder4=TgtFolder4, srcFolder3=TgtFolder3}}]][Pipeline] 
> echoclass java.util.ArrayList[Pipeline] }[Pipeline] // node[Pipeline] End of 
> Pipelinehudson.remoting.ProxyException: groovy.lang.MissingMethodException: 
> No signature of method: 
> WorkflowScript$_generateXML_closure1$_closure2$_closure3$_closure4$_closure5$_closure6$_closure9.doCall()
>  is applicable for argument types: (java.util.LinkedHashMap) values: 
> [[srcFolder1:TgtFolder1, srcFolder2:TgtFolder2]]
> Possible solutions: doCall(java.lang.Object, java.lang.Object), findAll(), 
> findAll(), isCase(java.lang.Object), isCase(java.lang.Object)
>   at 
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:286)
>   at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
>   at groovy.lang.Closure.call(Closure.java:414)
>   at groovy.lang.Closure.call(Closure.java:430)
>   at 
> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
>   at 
> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
>   at 
> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2056)
>   at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
>   at 
> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
>
>
>
>
>
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> 

Re: Trouble using MarkupBuilder DSL within Pipeline DSL

2017-04-06 Thread niristotle okram
Seems like there is more shit apart from the security!!! The if you are
using the java file writer, in a distributed env it doesn't work.
I can generate some nice xml's on the master but not in the slave. What a
shame!

On Tue, Mar 21, 2017 at 4:01 PM, André Lanouette 
wrote:

> Hello,
>
> Sorry to hijack this thread, but I am attempting to use the MarkupBuilder
> to generate POM aggregators project on the fly from my Jenkins Pipeline.
> However, I am also having a security issue when instantiating the
> MarkupBuilder:
>
>  Scripts not permitted to use new groovy.xml.MarkupBuilder java.io.Writer
>
>
> You say you have been able to override this. Would you be willing to share
> with me how to achieve this?
>
> Thank you
>
> On Tuesday, November 15, 2016 at 12:24:48 PM UTC-5, David Karr wrote:
>>
>> In my Jenkinsfile, I'm trying to use MarkupBuilder to construct a simple
>> XML message. I first discovered that there are default security
>> restrictions preventing the use of this class, which I was able to override.
>>
>> Next, I'm seeing errors that make it seem like the "methodMissing" calls
>> for XML elements within the MarkupBuilder DSL are going to the Pipeline DSL
>> instead.  I'm able to verify my method works in groovyConsole, but when I
>> run the job in Jenkins, I get an error like this:
>>
>> java.lang.NoSuchMethodError: No such DSL method 'statement' found among 
>> steps [VersionNumber, archive, ...
>>
>>
>> Where my method looks like this:
>> def constructMessageXML(String qid, String qpassword, String contactID,
>> String text, boolean isMeeting) {
>> def writer = new StringWriter()
>> MarkupBuilder mb= new MarkupBuilder(writer)
>> mb.message (type:"contact.send.message", id:qid, password:qpassword,
>> contactId:contactID) {
>> statement (isMeeting ? [from:qid, to:contactID, text:text, type:
>> "meeting"] : [from:qid, to:contactID, text:text]) {}
>> }
>> return writer.toString()
>> }
>>
>>
>> The list of steps from the error message are clearly from the Pipeline
>> DSL, not the MarkupBuilder DSL.
>>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/63d4680d-4ae5-4920-9a5c-5facb4486eee%40googlegroups.
> com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jsmMf2pcZGwto6h5JMbpSp2_B1St8hMFO2s0MZ0H%3DWOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Converting a string parameter to a List of Maps

2017-03-26 Thread niristotle okram
hi,

Can anyone let me know me, what is wrong here. I have the pipeline script,
and i am trying to pass a string parameter when the job is triggered. The
parameter will then be converted into a List of maps, so that i can iterate
through it.

Here is what i am trying:


String input = "$objectListParameter"  //This is from the job's input
String parameter
println input
def inputMap = Eval.me("$input")
def objectList=[] //initialize an empty List
objectList << inputMap
println objectList
println objectList.getClass()
//call the method
generateXML(objectList)  // This is the method marked with @NonCPS



The input parameter, ($objectListParameter) looks something like this:

[[name: 'a', file: 'fileA' , objectName: 'wf_A' , objectType: 'workflow',
sourceRepository: 'DEV2', folderNames: [srcFolder1: 'TgtFolder1',
srcFolder2: 'TgtFolder2']],[ name: 'B' , file: 'fileB' , objectName: 'wf_B'
, objectType: 'workflow', sourceRepository: 'DEV2', folderNames:
[srcFolder4: 'TgtFolder4', srcFolder3: 'TgtFolder3']]]


In the jenkins console Log, this the snippet





[Pipeline] echo[[name: 'a', file: 'fileA' , objectName: 'wf_A' ,
objectType: 'workflow', sourceRepository: 'DEV2', folderNames:
[srcFolder1: 'TgtFolder1', srcFolder2: 'TgtFolder2']],[ name: 'B' ,
file: 'fileB' , objectName: 'wf_B' , objectType: 'workflow',
sourceRepository: 'DEV2', folderNames: [srcFolder4: 'TgtFolder4',
srcFolder3: 'TgtFolder3']]][Pipeline] echo[[{name=a, file=fileA,
objectName=wf_A, objectType=workflow, sourceRepository=DEV2,
folderNames={srcFolder1=TgtFolder1, srcFolder2=TgtFolder2}}, {name=B,
file=fileB, objectName=wf_B, objectType=workflow,
sourceRepository=DEV2, folderNames={srcFolder4=TgtFolder4,
srcFolder3=TgtFolder3}}]][Pipeline] echoclass
java.util.ArrayList[Pipeline] }[Pipeline] // node[Pipeline] End of
Pipelinehudson.remoting.ProxyException:
groovy.lang.MissingMethodException: No signature of method:
WorkflowScript$_generateXML_closure1$_closure2$_closure3$_closure4$_closure5$_closure6$_closure9.doCall()
is applicable for argument types: (java.util.LinkedHashMap) values:
[[srcFolder1:TgtFolder1, srcFolder2:TgtFolder2]]
Possible solutions: doCall(java.lang.Object, java.lang.Object),
findAll(), findAll(), isCase(java.lang.Object),
isCase(java.lang.Object)
at 
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:286)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
at groovy.lang.Closure.call(Closure.java:414)
at groovy.lang.Closure.call(Closure.java:430)
at 
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
at 
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
at 
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2056)
at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
at 
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iwNNJH7Np_EDKmuT-NtxsA1dgt5fgEPDBbupb-FrErAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


using nonCPS and xml builder

2017-03-20 Thread niristotle okram
Hi,
i have forged the below pipeline workflow. The intent is to generate the
XML file as a part of the pipeline and it will be used in the subsequent
stages of the pipeline. I can invoke the pipeline successfully, but i dont
find the XML generated in the workspace. I would expect the "file.XML"
generated in the workspace. As you can see, i am not full fledge in groovy
yet.

How can i make sure that the file.xml is created in the workspace? If i
execute the script ( without the class generateXML() )in a groovyconsole it
works.
Any idea on how to pass the values of the variable before triggering the
job?

  def workflows = [
  [ name: 'A', file: 'fileA', objectName: 'wf_A', objectType: 'workflow',
sourceRepository: 'DEV2', folderNames: [ multifolder: '{{multifolderTST}}',
multifolder2: '{{multifolderTST2}}' ]],  [ name: 'B',
  file: 'fileB', objectName: 'wf_B',  objectType: 'workflow',
sourceRepository: 'DEV2', folderNames: [ multifolder3:
'{{multifolderTST3}}', multifolder4: '{{multifolderTST4}}' ]]
  ]






import groovy.xml.*

node('linux') {

//clear workspace
deleteDir()

  stage('Checkout') {
//stuff to checkout
  }

  /*
  This will generate the manifest xml in the workspace of the running job
  */

generateXML()


}



@NonCPS

generateXML() {
  def workflows = [
  [ name: 'A', file: 'fileA', objectName: 'wf_A', objectType: 'workflow',
sourceRepository: 'DEV2', folderNames: [ multifolder: '{{multifolderTST}}',
multifolder2: '{{multifolderTST2}}' ]],  [ name: 'B',
  file: 'fileB', objectName: 'wf_B',  objectType: 'workflow',
sourceRepository: 'DEV2', folderNames: [ multifolder3:
'{{multifolderTST3}}', multifolder4: '{{multifolderTST4}}' ]]
  ]

  def writer = new FileWriter('file.xml')
  def builder = new StreamingMarkupBuilder()
  builder.encoding = 'UTF-8'
  writer << builder.bind {
mkp.xmlDeclaration()
mkp.declareNamespace(udm :'http://www.w3.org/2001/XMLSchema')
mkp.declareNamespace(powercenter:'http://www.w3.org/2001/XMLSchema')
delegate.udm.DeploymentPackage(version:'$BUILD_NUMBER', application:
"informaticaApp"){
  delegate.deployables {
workflows.each { item ->
  delegate.powercenter.PowercenterXml(name:item.name,
file:item.file) {
delegate.scanPlaceholders(true)
delegate.sourceRepository(item.sourceRepository)
delegate.folderNameMap {
  item.folderNames.each { name, value ->
it.entry(key:name, value)
  }
}
delegate.objectNames {
  delegate.value(item.objectName)
}
delegate.objectTypes {
  delegate.value(item.objectType)
}
  }
}
  }
  delegate.dependencyResolution('LATEST')
  delegate.undeployDependencies(false)
}
  }
}

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hy8KR-4MXokdyTUTw4PrHUUkBtDEq%2BAaQvjmxo%2BN9ZPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automating Jenkins Installation Steps

2016-12-26 Thread niristotle okram
it really depends on the tool you are using to automate it. e.g:
https://supermarket.chef.io/cookbooks/jenkins  (if using chef). Unless you
are coming up with your own way. Then it needs more info in your request

On Mon, Dec 26, 2016 at 6:38 AM, 'Karthik Veeragoni' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hi guys,
>
> I'm trying to automate jenkins installations steps
> So as part of that I'm stuck at: Giving the initial Administration Key,
> Plugins Installation, User Account Creation
> How can I automate these steps, any help?
>
> Thanks & Regards
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/ecb8d32e-ddb6-4221-bc4d-7868d1d6748a%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4h4WQRz%2BxiigJoEGQpScD7G1GeZX-72P8Qd2Zn4qHMoXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get-Content : Cannot find path

2016-11-30 Thread niristotle okram
More info needed. Is this executed as a powershell script via jenkins or
 via the pipeline script or executed as a batch command (but feeding a
powershell code)?
What does the console error look like?




On Wed, Nov 30, 2016 at 6:39 PM,  wrote:

> $FilePath = 'C:\Windows\System32\inetsrv\config\applicationHost.config'
> $Line2Edit = ''
> $AppendAllow =  ' />'
>
> (Get-Content -Path  $FilePath) -replace $Line2Edit , "$AppendAllow" |
> Set-Content $FilePath
>
> Just as the title states, Jenkins cannot find the desired path.  Yes, the
> path exists, yes i have checked to make sure.
>
> When i run the the PowerShell script local it runs just fine, which leads
> me to believe its a permission issue, but Jenkins has admin rights and
> should be able to make any changes necessary.
>
> PowerShell runs 64 bit,  not sure about Jenkins however...
>
> Anybody have any suggestions?
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/df81ec10-6f58-478c-a0f4-8fe4a43c4eb0%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iAx4zUGJnBDqJx0OhnEXXCK_Hu8bXq4EVzOo3VrbprYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins failed using Ant Copy Command

2016-11-14 Thread niristotle okram
Does your jenkins user, have write perm on those failing servers?

On Monday, November 14, 2016, john rainier borden <
johnrainierbor...@gmail.com> wrote:

> Hi!
>
> I'm trying to create a simple freestyle project to build an executable. My
> build is primarily composed of ant and batch script and is ran via jenkins.
>
> It was able to build the binary but my problem is the build is failing
> when copying to a shared/mapped drive.
>
> see error below
>
> "Attempt to copy Folder\dist\file.exe to \\shareddrive\file.exe using NIO
> Channels failed due to 'failed to create the parent directory for
> \\shareddrive\file.ex'. Falling back to streams. "
>
> I have a separate buildbox that is windows 7 and is working fine, the
> issue is only happening on my 2 Windows 2008 server
>
> am i missing something? Any response are greatly appreciated.
>
> thanks,
> John
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com
> 
> .
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/0963933e-3dbf-45ca-99d9-726690b1aa28%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4jzW2FHH2VyU66%2BrV5PaBdueOsC0QeQA%2BRHH0kntnV3KQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Define the node in pipeline

2016-09-16 Thread niristotle okram
Can you try this:

node('sles12') {
stage name: 'checkout'
git 'https://github.com/acme/makefiles.git'
git url: 'https://github.com/acme/software.git', branch: env.BRANCH_NAME
sh 'echo `hostname`'
  }


On Wed, Sep 14, 2016 at 12:50 AM, Paul Chubatyy  wrote:

> Good morning,
>
> I'm creating a small pipeline script that has multiple stages on the node
> to be executed:
>
> node('sles12') {
> stage('checkout') {
> git 'https://github.com/acme/makefiles.git'
> git url: 'https://github.com/acme/software.git', branch: 
> env.BRANCH_NAME
> sh 'echo `hostname`'
> }
> }
>
>
> But Jenkins executes the actions on master node instead of slave. Although
> it sends me a mixed message in output:
>
> *22:17:46* Running on *sles12-slave2* in /jenkins/workspace/software/master   
> <- This seems correct[Pipeline] {[Pipeline] stage[Pipeline] { 
> (checkout)[Pipeline] git*22:17:46*  > git config remote.origin.url 
> https://github.com/acme/makefiles.git # timeout=10 <- But checkouts 
> happen on master node*22:17:46* Fetching upstream changes from 
> https://github.com/acme/makefiles.git
>
> ..Checks out the particular revision.
>
> [Pipeline] git *22:17:46* > git config remote.origin.url
> https://github.com/acme/software.git # timeout=10 *22:17:47* Fetching
> upstream changes from https://github.com/acme/software.git ..Checks
> out the particular revision. *22:17:47* First time build.
> Skipping changelog. [Pipeline] sh *22:17:47* [master] Running shell
> script *22:17:47* + hostname *22:17:47* + echo `hostname` *22:17:47* 
> *jenkins-master
> *<- This is master node [Pipeline] }
>
>
>
> Please advise what am I doing wrong here and how can I make Jenkins to 
> execute my git checkouts and shell commands on the node labeled sles12 
> instead of master.
>
>
> Thanks!
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/96f75a5f-7e4a-4e9b-a2dd-1756ad6546eb%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4je0QVni55oPJO4hBE0K%3DAG3n856asAJsJxX1LdzgEgeg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Local Jenkins server redirect to AWS Jenkins server

2016-08-24 Thread niristotle okram
How is your local jenkins installed? Do you have any proxy server like
apache/nginx? If yes you might want to look into the conf file.

* I point my browser to the local IP:8080 and I get the AWS Jenkins home
page.*
*> *check if the hosts file doesn't have a name resolution set to the old
AWS fqdn. if not set, tried cleaning the browser cache/history etc? Id this
local IP is a private ip, within your corp network, there is no way to pull
up the page from the aws instance. Unless you have some sort of vpn
tunneling going on from your corp network to an aws vpc


Also try changing the port from 8080 to something else like 8082 on your
local instance of jenkins and check out.


Good Luck!







On Wed, Aug 24, 2016 at 6:43 PM, Michael Ryan  wrote:

> I deleted that local Jenkins instance and built another on a separate VM.
> I was careful not to reference the AWS instance anywhere in the config
> including the 'Jenkins URL' field.  Searching in the /var/lib/jenkins dir
> reveals no instances of the name of the AWS jenkins server.  Yet it now
> redirects me to the AWS server again ?!?
>
> What's going on here?
>
> All help is much appreciated!
> -Michael
>
> On Tuesday, August 23, 2016 at 9:56:25 AM UTC-7, Hiteswar kumar wrote:
>>
>> Check if If there any proxy  or iptable configured for redirecting or
>>  "manage Jenkins -> configure system -> Jenkins URL" has aws URL .
>>
>> Regards
>> hiteswar
>>
>> On Aug 23, 2559 BE, at 10:08 PM, Michael Ryan  wrote:
>>
>> We have a Jenkins instance running on an AWS server that we want to move
>> in house.  The process was to create and configure a local Jenkins
>> instance, verify jobs are executing correctly, then switch to the local
>> Jenkins.  I setup the local instance and configured it. Then it began
>> redirecting the main page to the AWS server.  I point my browser to the
>> local IP:8080 and I get the AWS Jenkins home page.  I don't know how the
>> local Jenkins instance even knows about the AWS instance.  How do I correct
>> this?
>>
>> All help greatly appreciated.
>> - Michael
>>
>> --
>> 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 jenkinsci-use...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/jenkinsci-users/4b29fa6f-fb6e-445f-a228-df6e2ab72fb8%
>> 40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/7d14898c-05e3-495a-8682-592737d708da%40googlegroups.
> com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4ir_aVd-pvh2%3DimRDs8HwOdwzEmS_LdDBony4JS6sGr6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: New Pipeline Maven plugin

2016-08-11 Thread niristotle okram
Assuming maven was already installed in the node & have the files
configured (settings.xml, local repo etc) from the TOOLS setting of
jenkins..
Will this plugin override those settings?

 withMaven(mavenInstallation: 'M3', mavenLocalRepo: '.repository',
mavenSettingsConfig: 'maven-settings-for-gameoflife') {
// Run the maven buildsh "mvn clean install"
}



And is there any plan for the maven release plugin in pipeline? At the
moment i am using the 'bat' to call the goals for release:prepare and
release:perform



Thanks






On Thu, Aug 11, 2016 at 11:33 AM, Álvaro Lobato 
wrote:

>
> Hello everyone,
>
> I'd like to introduce you to the new Pipeline Maven
>  plugin .
> The intention of this plugin is to help using maven from pipeline, setting
> up a maven environment by using a withMaven step. This environment can
> later be called with sh or bat step.
>
> The supported configuration parameters are:
>
>- Maven Installation
>- JDK
>- Maven Settings Config (Config File Provider Plugin)
>- Maven Settings File Path
>- Maven JVM Opts
>- Maven Local Repository
>
> The step can be used used directly on a node or in a docker.inside.
>
> Currently it is in an early stage of development and I've just released
> the first beta version, already available in the update center.
>
> This is the start point for a more feature rich integration between
> pipeline and maven.
>
> You can find more information on the wiki page: Pipeline Maven plugin
> 
>
> Thanks
> Alvaro.
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/81089a41-3bdf-47a4-bdad-b4424d27341b%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4g0yPF0rBYm89cY3N7gKvw3EYQwGX6W_%3D9K9bDBoBhcJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins CLI, trouble installing plugin from local hpi

2016-08-04 Thread niristotle okram
just curious - what is this* "local hpi" ?*

On Thu, Aug 4, 2016 at 4:02 AM, Daniel Beck  wrote:

>
> > On 28.07.2016, at 01:36, James Richard  wrote:
> >
> > Manually uploading the files to the server works fine, I can
> upgrade/downgrade and install any specific version without trouble. There
> is only an issue when I use the Jenkins CLI
>
> Is that plugin bundled with Jenkins? If so, could be
> https://issues.jenkins-ci.org/browse/JENKINS-29726
>
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/495E43B9-0ADB-4458-AEF1-EAD7705CC905%40beckweb.net.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iehfQEeSONbPQW0NDbc93evu4VUOPDg4mpCKjM6fwg7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: is this a part of JENKINS-17587 bug impacting the pipeline job type?

2016-07-11 Thread niristotle okram
never mind, i got it fixed.

On Mon, Jul 11, 2016 at 12:53 PM, niristotle okram <nirish.ok...@gmail.com>
wrote:

> Declaring the node section in the pipeline workflow script as below
>
>
> node(‘"PHG123" || "PSJ456"’) {
>
>  //some code block
>
>  }
>
>
> Also like this
>
>
> node(‘PHG123 && PSJ456’ )
>
>  //some code block
>
>  }
>
> Both failed to respect the logical operator. jenkins log says :
>
>
> There are no nodes with the label ‘PHG123" || "PSJ456’
>
> There are no nodes with the label ‘PHG123&’
>
>
>
>
>
>
>
> --
> Regards
> nirish okram
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4j0ccjuqCJptRenB%2BFmfm-F%2B%3DaQ2T1_EPQR2K%3DKkdN37g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


is this a part of JENKINS-17587 bug impacting the pipeline job type?

2016-07-11 Thread niristotle okram
Declaring the node section in the pipeline workflow script as below


node(‘"PHG123" || "PSJ456"’) {

 //some code block

 }


Also like this


node(‘PHG123 && PSJ456’ )

 //some code block

 }

Both failed to respect the logical operator. jenkins log says :


There are no nodes with the label ‘PHG123" || "PSJ456’

There are no nodes with the label ‘PHG123&’







-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4gRNkEiewButM61Gh6hXGtF8iuvu%3DkfFbsCVegznmdMdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: using maven.config

2016-06-02 Thread niristotle okram
Navigate to manage jenkins - configure system & update the Maven
Configuration

On Thu, Jun 2, 2016 at 1:31 PM, Derek  wrote:

> I have been unable to get Jenkins to run maven in such a way that it
> honors the .mvn/maven.config properties file (introduced in maven
> 3.3).  I have tried running with a Maven project type and a Freestyle
> project type.  If I execute maven from the command line on the Jenkins
> slave in the workspace, it works fine.  Executing maven from Jenkins
> against the pom, builds the project but the maven.config is never
> picked up like it should be.
>
> Any ideas why I Maven run from Jenkins does not pickup maven.config?
>
> Using
> Jenkins ver. 1.642.1
> Maven 3.3.9
> Maven Plugin 2.7.1
>
> Example:
> .mvn/maven.config
> -Dmyproperty=HelloWorld
>
> pom.xml
>
> http://maven.apache.org/POM/4.0.0;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd;>
>   4.0.0
>   my.test
>   jenkins-maven-config
>   1.0-SNAPSHOT
>   pom
>
>   
> ERROR: Not Set
>   
>
>   
> 
>   
> org.codehaus.mojo
> exec-maven-plugin
> 1.4.0
> 
>   
> echo parameter
> generate-sources
> 
>   exec
> 
> 
>   echo ${myproperty}
> 
>   
> 
>   
> 
>   
>
> 
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAM0rHLz9Hm9zVLeMzfHKnxkkTxC6311vsk-L%2Bhv1EoHmMyzXiQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4gph2Hk0CanvRieKZ12mHdcCn3hDOKi%2BhoskHNgt45NhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Robocopy induced error in the pipeline

2016-04-17 Thread niristotle okram
Thanks, yes the exit code is the cause for this. Had to change my batch
lines like this

bat "robocopy %cd%${some_path1}${some_path2} ${path_to_node}\\a_folder1
file1 file2 ^& IF %ERRORLEVEL% LEQ 1 exit 0"
bat "robocopy %cd%${some_path1}${some_path3} ${path_to_node}\\a_folder2
file1 file2 ^& IF %ERRORLEVEL% LEQ 1 exit 0"


On Sun, Apr 17, 2016 at 3:55 PM, Daniel Beck <m...@beckweb.net> wrote:

>
> > On 17.04.2016, at 21:13, niristotle okram <nirish.ok...@gmail.com>
> wrote:
> >
> > When the job comes to portion where the above code exist, it appears
> that the first line of robocopy is executed. And it exist.
>
> Robocopy uses non-zero exit codes to indicate what it did rather than
> report a problem/failure -- which is likely how 'bat' interprets those. Try
> something like described here:
>
> https://technet.microsoft.com/en-us/library/ff182367%28WS.10%29.aspx
>
> You may need to use 'exit /b 0' instead if 'exit 0' for Pipeline, not sure.
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/EAEE75D5-1374-4F1C-BFA1-3D0920FE1C9E%40beckweb.net
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hy%2BgZVi5ag0uFj%3D%3D_WT%3D2BTZ2jM%2BTvZevcQkToO44cBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Robocopy induced error in the pipeline

2016-04-17 Thread niristotle okram
Hi,
This is not directly a jenkins issue, but i am clueless on why this is
failing. All i trying to do is use robocopy (since we are using the damn-it
windows) to copy over 2 files from a jenkins dir to my nodes. The part of
the jenkins pipeline where its failing looks like this

bat "robocopy %cd%${some_path1}${some_path2} ${path_to_node}\\a_folder1
file1 file2"
bat "robocopy %cd%${some_path1}${some_path3} ${path_to_node}\\a_folder2
file1 file2"
bat "robocopy %cd%${some_path1}${some_path4} ${path_to_node}\\a_folder3
file1 file2"
bat "robocopy %cd%${some_path1}${some_path5} ${path_to_node}\\a_folder4
file1 file2"

When the job comes to portion where the above code exist, it appears that
the first line of robocopy is executed. And it exist.








-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hiJj1mfJAJkgUVz%2BpAy%3DD-ZqiF_90GHXwDVTZjfhikpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


jenkins pipeline with Ruby

2016-04-01 Thread niristotle okram
*Is there any plans for supporting Ruby, for writing the pipeline scripts? *



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4ig8k1n5Ek69C3G%3D2WiP93r0-vtCwwEpnxqjO1wTPstpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


loading files with methods inside a workflow

2016-03-02 Thread niristotle okram
does Jenkins takes care of unloading files when the job finishes or do we
need to unload the files to free up memory?

We are loading files as a part of the workflow. These files contains
functions/methods that will perform certain task.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4i1mp_O%3DqYtVuHtKFVybW%2BZ%3DfSvNhTuWT%3Dd_mamuCL33A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Send email based on script output

2016-02-25 Thread niristotle okram
i can't recall the exact name but there is a jenkins option to execute some
groovy script. (if you are still using the old jenkins jobs NOT pipeline).
So based on the flag, execute the script that triggers the mail

On Thu, Feb 25, 2016 at 9:31 PM, varun umesh  wrote:

> I have test automation framework, and the test runs are driven through
> Jenkins. After the test run is completed, it generates a few custom test
> reports, as html file. In the report, i have a table with total number of
> errors as one of the column. I basically want to parse this html file and
> send out an email to a mailing list if the error is greater than 0.
>
> Here is what i have done till now, in my Jenkins job:
>
> a. Configured the job to run the tests [this is in an execute shell option
> and running my jar, as the test framework is a java application]
> b. I have a post build action, in which i execute a python code, which
> does the following:
>
> Step 1. Get the latest html report.
> Step 2. Parse this file.
> Step 3. If the error is > 0:
> then email_flag = true
> else:
> email_flag = false.
>
> Now is there a way i can use the above flags and send email notifications,
> via Jenkins plugins? I just want to understand the best way to do this. Any
> help is appreciated.
>
> P.S. I did some additional research and i see the Email-ext plugin [
> https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin]
>  has a
> pre-send script option, but i just don't know how to use this to run the
> python code and handle the email messaging.
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/8d43e8cb-d59c-4c9a-b732-8a1a029a813e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4ixZXuS%2BcTKsbpc5woYoAyGV0rjJNhCEg9mmZaByFhcrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Getting started with jenkins CI. getting git to trigger build

2016-02-18 Thread niristotle okram
Interesting... Are you able to trigger the build manually? what is the SCM?

On Thu, Feb 18, 2016 at 8:47 AM, Moshe  wrote:

> thank you but I saw this already. some tutorials say use poll scm and
> others say use Build when a change is pushed to GitHub.
> none of them are triggering the build.
>
> בתאריך יום חמישי, 18 בפברואר 2016 בשעה 16:34:26 UTC+2, מאת ok999:
>>
>> Open the jenkins job configuration page and look for build trigger.
>>
>> On Thursday, February 18, 2016, Moshe  wrote:
>>
>>> Hey everyone.
>>> After spending literally hours reading articles, watching videos and
>>> what not, I'm officialy saying jenkins got the best of me.
>>> My requirements are as simple as they can get. I need jenkins to work
>>> with my Git repository and to trigger a build each time a change is made to
>>> the branch.
>>> But as deep as I dig in, I see more things needed to be configured.
>>> I saw git hooks but I read the documentation and couldn't figure out how
>>> to create the trigger when a remote commit\push happens.
>>> Can someone guide me through it?
>>> Isn't it something that most of jenkins users and admins use?
>>> How most people trigger build?
>>> Thanks.
>>>
>>> --
>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/594c804d-1aba-4bc7-a5ce-263420e97e7c%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Sent from mobile device, excuse typos if any.
>>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/6a53649a-f605-45f9-b6e7-e50f001b347b%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iy1VeFxWuHH-t3mCUZ%3Di-7eT4-Ej%3Du0bQR41ud69G8AA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Getting started with jenkins CI. getting git to trigger build

2016-02-18 Thread niristotle okram
Open the jenkins job configuration page and look for build trigger.

On Thursday, February 18, 2016, Moshe  wrote:

> Hey everyone.
> After spending literally hours reading articles, watching videos and what
> not, I'm officialy saying jenkins got the best of me.
> My requirements are as simple as they can get. I need jenkins to work with
> my Git repository and to trigger a build each time a change is made to the
> branch.
> But as deep as I dig in, I see more things needed to be configured.
> I saw git hooks but I read the documentation and couldn't figure out how
> to create the trigger when a remote commit\push happens.
> Can someone guide me through it?
> Isn't it something that most of jenkins users and admins use?
> How most people trigger build?
> Thanks.
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com
> 
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/594c804d-1aba-4bc7-a5ce-263420e97e7c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4j1QR4UaSDVSd%3DriOE6LVm_PSv804_LySgna57TUQDrSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Scheduled maintenance notice: 2016-02-17 05:00 UTC

2016-02-16 Thread niristotle okram
Does this include the update center site as well?

On Tuesday, February 16, 2016, R. Tyler Croy  wrote:

>
> I will be rolling some reboots through the Jenkins infrastructure this
> evening
> (PST) in order to address CVE-2015-7547 / USN-2900-1
> (http://www.ubuntu.com/usn/usn-2900-1/). Our internal ticket tracking
> this can
> be found here: https://issues.jenkins-ci.org/browse/INFRA-566
>
> I expect the impact to be minimal, but services will be temporarily taken
> offline while hosts are rebooting. An all-clear notice will be sent after
> maintenance has been completed.
>
>
> If you have any questions, feel free to ask.
>
>
>
> Cheers
> - R. Tyler Croy
>
> --
>  Code: 
>   Chatter: 
>
>   % gpg --keyserver keys.gnupg.net --recv-key 3F51E16F
> --
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/20160216233737.GV17392%40blackberry.coupleofllamas.com
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Sent from mobile device, excuse typos if any.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4g0%2BveSZqm2ksmBXWVu4oka6gAvs0ECq5JsW09sxPFMKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Setup Problem

2016-02-10 Thread niristotle okram
Go to the jenkins home directory, and search for a config.xml file. Open
that file, and set the security to false. This will revoke the security
that you enabled. And redo the things, always use the mouse while assigning
permissions. The enter key save the damn thing pre-maturely.

HTH

On Wed, Feb 10, 2016 at 9:47 AM, balajee venkatesh <
balajee.venkatesh1...@gmail.com> wrote:

> Hi,
>
> I'm using Jenkins for the first time. As per one of the instructions given
> at it's decumentation I downloaded the war file and started the jenkins
> using this command:
> java -jar jenkins.war
>
> -> http:// localhost:8080
>
> Later, I tried to manage the users by facilitating Login/Sign Up options
> but perhaps something went wrong and I'm unable to login. It is saying that
> I don't have 'read' access.
>
> Please let me know if there is any way to revert the changes so that I can
> start and use jenkins like before without getting asked for Login details.
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/9a65c8d6-aa46-4c84-87eb-d6f589c792ba%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4iRXbAzVQ_EoQ70fYR_Qk-ijzwqBWyjrTiiQCPsSNrqYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using checkpoint inside of node {} is unsupported and unreliable

2016-02-02 Thread niristotle okram
Again answering to self: 

If i modify my script to be like the below, i can still confine my files to 
a workspace and use the checkpoint

stage name 'one', concurrency: 1
node(XXX) {
ws("C:\\abc\\workspace\\${env.BUILD_NUMBER}") {

// codes  // 

 }

}

checkpoint 'post1'

stage name 'two', concurrency: 2
node(XXX) {
ws("C:\\abc\\workspace\\${env.BUILD_NUMBER}") {

// codes  // 

 }

}



On Tuesday, February 2, 2016 at 10:35:09 AM UTC-6, niristotle okram wrote:
>
> Due to some requirements of confining the files in the workspace on an 
> instance of a job, i am restricting instances of job to a particular node & 
> specific workspace. The reason for clamping down the node is to avoid 
> overwriting when the concurrent builds are executed. The workflow script 
> looks like below: 
>
> node(XXX) {
> ws("C:\\abc\\workspace\\${env.BUILD_NUMBER}") {
>
> // codes of all the stages // 
>
>  }
>
> }
>
> I get the warnings: Using checkpoint inside of node {} is unsupported and 
> unreliable
>
> Do i stop using the checkpoint with my current workflow script design?
>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ad50c48f-ab6d-4620-a828-da37cc16707d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using checkpoint inside of node {} is unsupported and unreliable

2016-02-02 Thread niristotle okram
There is a *possible bug* here with the checkpoint implementation and when 
using the custom workflow. 

Lets say, i am executing the job such that each instance create a unique 
workspace (in my case, the build_number). Now, i want to resume (using a 
checkpoint) a previous job, the new job starts from the old workspace of 
the previous job, which is right. But when it enters the next stage, it 
create a new workspace and if there is a dependency on the data from the 
previous workspace. The job fails as the new workspace doesn't have any 
files in it from the previous stages.

IMHO, the job should continue withing the old workspace and not create a 
new one. Is there any reason why it should create a new workspace, to me we 
are reexecuting or continuing the old stopped or failed or successful job. 









 









On Tuesday, February 2, 2016 at 11:03:25 AM UTC-6, niristotle okram wrote:
>
> Again answering to self: 
>
> If i modify my script to be like the below, i can still confine my files 
> to a workspace and use the checkpoint
>
> stage name 'one', concurrency: 1
> node(XXX) {
> ws("C:\\abc\\workspace\\${env.BUILD_NUMBER}") {
>
> // codes  // 
>
>  }
>
> }
>
> checkpoint 'post1'
>
> stage name 'two', concurrency: 2
> node(XXX) {
> ws("C:\\abc\\workspace\\${env.BUILD_NUMBER}") {
>
> // codes  // 
>
>  }
>
> }
>
>
>
> On Tuesday, February 2, 2016 at 10:35:09 AM UTC-6, niristotle okram wrote:
>>
>> Due to some requirements of confining the files in the workspace on an 
>> instance of a job, i am restricting instances of job to a particular node & 
>> specific workspace. The reason for clamping down the node is to avoid 
>> overwriting when the concurrent builds are executed. The workflow script 
>> looks like below: 
>>
>> node(XXX) {
>> ws("C:\\abc\\workspace\\${env.BUILD_NUMBER}") {
>>
>> // codes of all the stages // 
>>
>>  }
>>
>> }
>>
>> I get the warnings: Using checkpoint inside of node {} is unsupported and 
>> unreliable
>>
>> Do i stop using the checkpoint with my current workflow script design?
>>
>>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5513b41a-6021-4842-bd9b-20360aea7c0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Using checkpoint inside of node {} is unsupported and unreliable

2016-02-02 Thread niristotle okram
Due to some requirements of confining the files in the workspace on an 
instance of a job, i am restricting instances of job to a particular node & 
specific workspace. The reason for clamping down the node is to avoid 
overwriting when the concurrent builds are executed. The workflow script 
looks like below: 

node(XXX) {
ws("C:\\abc\\workspace\\${env.BUILD_NUMBER}") {

// codes of all the stages // 

 }

}

I get the warnings: Using checkpoint inside of node {} is unsupported and 
unreliable

Do i stop using the checkpoint with my current workflow script design?

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6f4baa5d-f4fc-42b3-99bc-6be6b84f9556%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: create custom workspace for each execution of a job

2016-02-01 Thread niristotle okram
ahh - yes the try/catch is an option that i missed. Now for the delete, i
am referring to the various workspace folder that each run of the
job/workflow is going to create with my current script. My current workflow
script is creating directories with the name as the BUILD_NUMBER as unique
workspace for each run. So, i will end up with lots of directories under "
/opt/mount1/jenkins/jobs/GoogleFlow/workspace"

like

/opt/mount1/jenkins/jobs/GoogleFlow/workspace/1

/opt/mount1/jenkins/jobs/GoogleFlow/workspace/2

/opt/mount1/jenkins/jobs/GoogleFlow/workspace/3

/opt/mount1/jenkins/jobs/GoogleFlow/workspace/4

.

.

.

.

.

.

.


is there any DSL command to delete these workspaces, once the job succeeds?


ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")


i see an option "deleteDir()", can i use something like this (at the end of
my workflow)?

*deleteDir("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")*

On Mon, Feb 1, 2016 at 3:13 PM, Ryan Campbell <ryan.campb...@gmail.com>
wrote:

> Standard recommendation is to write your job so that it can correctly
> clean up the workspace before building, for instance with a git reset or
> similar. Git scm step has flags for this.
>
> If you want to analyze the workspace upon failure, perhaps use a try/catch
> block and put an archive step in the catch.
>
> On Mon, Feb 1, 2016 at 3:01 PM niristotle okram <nirish.ok...@gmail.com>
> wrote:
>
>> Yes, i started by thinking that the workspace will be auto unique. i
>> noticed that when i trigger mulitple build for a job (trying to simulate
>> the concurrency), it sometime creates workspaces like
>>
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace
>>
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace@2
>>
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace@3
>>
>> then, the next comes back to
>>
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace
>>
>>
>>
>> i am not sure why its coming back to  this workspace 
>> "/opt/mount1/jenkins/jobs/GoogleFlow/workspace" instead of 
>> "/opt/mount1/jenkins/jobs/GoogleFlow/workspace@4".
>>
>>
>>
>> My guess is that the first job that was using the 
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace have moved to the next stage 
>> and the workspace have been allocated to the 4th job in the series.
>>
>>
>> This creates a mess to my job1's file in the same workspace as the job4. The 
>> job4 starts rewriting on them. I have set my workspace to be like so now, so 
>> that each instance of the job uses a specific workspace corresponding to the 
>> BUILD_NUMBER. (Ignore the messy stupid code for the stages)
>>
>>
>>
>>
>>
>> node("master") {
>> ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}") {
>> stage name: 'sync', concurrency: 1
>>   echo "before sync"
>>   sh '''touch buildFile
>>   echo "This is from ${BUILD_NUMBER}" >> buildFile
>>   cat buildFile'''
>>   sh "sleep 5"
>>   echo "after sync"
>>   sh "date"
>>
>>
>> stage name: 'build_and_test', concurrency: 1
>>   stage name: 'build'
>>   echo "before build"
>>   sh "date"
>>   sh '''sleep 10
>>   cat buildFile'''
>>   echo "build 1/3"
>>   sh "sleep 5"
>>   echo "build 2/3"
>>   sh '''sleep 5
>>   cat buildFile'''
>>   echo "build 3/3"
>>   sh "date"
>>
>> stage name: 'test', concurrency: 1
>>   echo "before test"
>>   sh "date"
>>   sh '''sleep 10
>>   cat buildFile'''
>>   sh "date"
>> }
>> }
>>
>>
>>
>> I have to decide if i want to delete this workspace after each instance
>> or leave them for debugging. If left, then find a way to purge them. Am
>> putting myself in a cobweb now?? :)
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Feb 1, 2016 at 2:48 PM, Ryan Campbell <ryan.campb...@gmail.com>
>> wrote:
>>
>>> Workspaces should already be unique to a given concurrent build of
>>> Jenkins. You shouldn't have to do anything special to enable this.
>>>
>>> On Mon, Feb 1, 2016, 2:38 PM niristotle okram <nirish.ok...@gmail.com>
>>> wrote:
>>>
>>>> Okay - i figured out the point of error. i should be using the "
>>>> instead of ' . So it should be
>>>>
>>>> ws("/opt/mount1/jenkins/job

Re: create custom workspace for each execution of a job

2016-02-01 Thread niristotle okram
Okay - i figured out the point of error. i should be using the " instead of 
' . So it should be 

ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")

On Monday, February 1, 2016 at 2:23:10 PM UTC-6, niristotle okram wrote:
>
> i am trying to create unique workspace for my workflow/pipeline. The 
> workspace will contain certain files that i don't want to mess up when the 
> job runs concurrently. my workflow looks something like 
>
> node("master") {
> stage name: 'sync', concurrency: 3
> ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') {
> //code block
> }
>
> stage name: 'build_and_test', concurrency: 1
>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') 
> {
>   //code block
> }
> stage name: 'test', concurrency: 3
>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') 
> {
>   //code block
> }
> }
>
> I am expecting jenkins to create workspaces like inside the main/default 
> workspace (/opt/mount1/jenkins/jobs/GoogleFlow/workspace) as 
> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/1
> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/2
> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/3
>
>
> how do i make the env variable ${env.BUILD_NUMBER} get the value while 
> creating the workspace?
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/47c32643-6963-47d2-adf0-c288fe7bda35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


create custom workspace for each execution of a job

2016-02-01 Thread niristotle okram
i am trying to create unique workspace for my workflow/pipeline. The 
workspace will contain certain files that i don't want to mess up when the 
job runs concurrently. my workflow looks something like 

node("master") {
stage name: 'sync', concurrency: 3
ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') {
//code block
}

stage name: 'build_and_test', concurrency: 1
 ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') {
  //code block
}
stage name: 'test', concurrency: 3
 ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') {
  //code block
}
}

I am expecting jenkins to create workspaces like inside the main/default 
workspace (/opt/mount1/jenkins/jobs/GoogleFlow/workspace) as 
/opt/mount1/jenkins/jobs/GoogleFlow/workspace/1
/opt/mount1/jenkins/jobs/GoogleFlow/workspace/2
/opt/mount1/jenkins/jobs/GoogleFlow/workspace/3


how do i make the env variable ${env.BUILD_NUMBER} get the value while 
creating the workspace?

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a6f62ea6-e7f3-4d88-9a87-de450aa7b834%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: create custom workspace for each execution of a job

2016-02-01 Thread niristotle okram
Yes, i started by thinking that the workspace will be auto unique. i
noticed that when i trigger mulitple build for a job (trying to simulate
the concurrency), it sometime creates workspaces like

/opt/mount1/jenkins/jobs/GoogleFlow/workspace

/opt/mount1/jenkins/jobs/GoogleFlow/workspace@2

/opt/mount1/jenkins/jobs/GoogleFlow/workspace@3

then, the next comes back to

/opt/mount1/jenkins/jobs/GoogleFlow/workspace



i am not sure why its coming back to  this workspace
"/opt/mount1/jenkins/jobs/GoogleFlow/workspace" instead of
"/opt/mount1/jenkins/jobs/GoogleFlow/workspace@4".



My guess is that the first job that was using the
/opt/mount1/jenkins/jobs/GoogleFlow/workspace have moved to the next
stage and the workspace have been allocated to the 4th job in the
series.


This creates a mess to my job1's file in the same workspace as the
job4. The job4 starts rewriting on them. I have set my workspace to be
like so now, so that each instance of the job uses a specific
workspace corresponding to the BUILD_NUMBER. (Ignore the messy stupid
code for the stages)





node("master") {
ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}") {
stage name: 'sync', concurrency: 1
  echo "before sync"
  sh '''touch buildFile
  echo "This is from ${BUILD_NUMBER}" >> buildFile
  cat buildFile'''
  sh "sleep 5"
  echo "after sync"
  sh "date"


stage name: 'build_and_test', concurrency: 1
  stage name: 'build'
  echo "before build"
  sh "date"
  sh '''sleep 10
  cat buildFile'''
  echo "build 1/3"
  sh "sleep 5"
  echo "build 2/3"
  sh '''sleep 5
  cat buildFile'''
  echo "build 3/3"
  sh "date"

stage name: 'test', concurrency: 1
  echo "before test"
  sh "date"
  sh '''sleep 10
  cat buildFile'''
  sh "date"
}
}



I have to decide if i want to delete this workspace after each instance or
leave them for debugging. If left, then find a way to purge them. Am
putting myself in a cobweb now?? :)







On Mon, Feb 1, 2016 at 2:48 PM, Ryan Campbell <ryan.campb...@gmail.com>
wrote:

> Workspaces should already be unique to a given concurrent build of
> Jenkins. You shouldn't have to do anything special to enable this.
>
> On Mon, Feb 1, 2016, 2:38 PM niristotle okram <nirish.ok...@gmail.com>
> wrote:
>
>> Okay - i figured out the point of error. i should be using the " instead
>> of ' . So it should be
>>
>> ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")
>>
>>
>> On Monday, February 1, 2016 at 2:23:10 PM UTC-6, niristotle okram wrote:
>>>
>>> i am trying to create unique workspace for my workflow/pipeline. The
>>> workspace will contain certain files that i don't want to mess up when the
>>> job runs concurrently. my workflow looks something like
>>>
>>> node("master") {
>>> stage name: 'sync', concurrency: 3
>>> ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
>>> {
>>> //code block
>>> }
>>>
>>> stage name: 'build_and_test', concurrency: 1
>>>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
>>> {
>>>   //code block
>>> }
>>> stage name: 'test', concurrency: 3
>>>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
>>> {
>>>   //code block
>>> }
>>> }
>>>
>>> I am expecting jenkins to create workspaces like inside the main/default
>>> workspace (/opt/mount1/jenkins/jobs/GoogleFlow/workspace) as
>>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/1
>>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/2
>>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/3
>>>
>>>
>>> how do i make the env variable ${env.BUILD_NUMBER} get the value while
>>> creating the workspace?
>>>
>> --
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/47c32643-6963-47d2-adf0-c288fe7bda35%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/47c32643-6963-47d2-adf0-c288fe7bda35%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed t

Re: [workflow-plugin] stage concurrency not working outside of node scope?

2016-01-29 Thread niristotle okram
*Please Excuse & advise, if this is not appropriate to continue post in an 
old post. *

We are using the cloudbees jenkins. And are optimizing the workflows (the 
new name: pipeline) to get some concurrency going. The way i understand 
concurrency is the simultaneous execution. So a value of 

concurrency: 1 --> allow only one instance for the stage
concurrency: n --> allow 'n' number of instance for the stage
  
Am i am interpreting it correctly? 

What if the concurrency is not specified (and the option to execute 
concurrently in the workflow config is not checked)? Will the jobs run 
serially, meaning stay as pending until the first job is over? 
What is concurrency: 0 (a came accross that 0 means unlimited concurrency! 
is this correct)?


And to get some clarity, i used the workflow given by Sebastien here. But 
to get some clarity on the timelines, i entered the date command to mark 
the timelines for the stage's start and end. below is the script. 


stage name: 'sync'
node("master") {
  echo "before sync"
  sh "sleep 10"
  echo "after sync"
  sh "date"
}

stage name: 'build_and_test', concurrency: 1
node("master") {
  stage name: 'build'
  echo "before build"
  sh "date"
  sh "sleep 10"
  echo "build 1/3"
  sh "sleep 10"
  echo "build 2/3"
  sh "sleep 10"
  echo "build 3/3"
  sh "date"

  stage name: 'test', concurrency: 1
  echo "before test"
  sh "date"
  sh "sleep 10"
  echo "test 1/3"
  sh "sleep 10"
  echo "test 2/3"
  sh "sleep 10"
  echo "test 3/3"
  sh "date"
}


I still notice the issue reported by Sebastien. i have set up 7 executors 
and fired 4 jobs on the same workflow. 
1. All the 4 jobs triggered the first stage of sync
2. All the 4 jobs triggered the second stage of build_and_test which have a 
concurrency: 1
3. NOT all the 4 triggers the proceeds to the 'stage name: 'test', 
concurrency: 1' 

Why are the jobs running concurrently for 'stage name: 'build_and_test', 
concurrency: 1' ??

IS my understanding on the concurrency flawed? 

job console output:

http://pastebin.com/n6tJJ0Zu

http://pastebin.com/x9tryKUV

http://pastebin.com/6hsan1KY

http://pastebin.com/kPbtxKbj


This is a simple timeline for all the 4 jobs

Stage   Sync   'build_and_test', concurrency: 1'test', concurrency: 
1   

  26 Fri Jan 29 16:20:39 UTC 2016 Fri Jan 29 16:20:40 UTC 2016   Fri Jan 29 
16:21:10 UTC 2016   Fri Jan 29 16:21:11 UTC 2016   Fri Jan 29 16:21:41 UTC 
2016 
  27 Fri Jan 29 16:20:43 UTC 2016 Fri Jan 29 16:20:43 UTC 2016   Fri Jan 29 
16:21:14 UTC 2016   Entering stage test/Waiting for builds [26]/Canceled 
since #28 got here 
  28 Fri Jan 29 16:20:46 UTC 2016 Fri Jan 29 16:20:47 UTC 2016   Fri Jan 29 
16:21:17 UTC 2016   Entering stage test/Canceling older #27/Waiting for 
builds [26]/Canceled since #29 got here 
  29 Fri Jan 29 16:20:51 UTC 2016 Fri Jan 29 16:20:51 UTC 2016   Fri Jan 29 
16:21:22 UTC 2016   Fri Jan 29 16:21:42 UTC 2016   Fri Jan 29 16:22:12 UTC 
2016 











On Tuesday, March 10, 2015 at 6:23:39 AM UTC-6, sebastien@gmail.com 
wrote:
 

>
> On Thursday, February 26, 2015 at 11:39:45 PM UTC+1, Jesse Glick wrote:
>>
>> On Thu, Feb 26, 2015 at 3:59 PM,   wrote: 
>> > Did you test my simple workflow? 
>>
>> No, sorry, was just guessing that your issue was a duplicate. 
>>
>> > Or is there as way for me to test it on a daily build of the plugin? 
>>
>> $ git clone https://github.com/jenkinsci/workflow-plugin.git 
>> $ mvn -f workflow-plugin -DskipTests install 
>> $ mvn -f workflow-plugin/aggregator hpi:run 
>> $  http://localhost:8080/jenkins/ 
>>
>
> Hi Jesse, 
>
> I just tested with workflow-1.3-39-g694a0f0, and cannot reproduce the 
> issue.
>
> Thank you!
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/32329f05-41a8-45a5-9552-31fa48a8283a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [workflow-plugin] stage concurrency not working outside of node scope?

2016-01-29 Thread niristotle okram
Things looks much better with the flow below:


stage name: 'sync'
node("master") {
  echo "before sync"
  sh "sleep 10"
  echo "after sync"
  sh "date"
}


node("master") {
  stage name: 'build', concurrency: 1
  echo "before build"
  sh "date"
  sh "sleep 10"
  echo "build 1/3"
  sh "sleep 10"
  echo "build 2/3"
  sh "sleep 10"
  echo "build 3/3"
  sh "date"

  stage name: 'test', concurrency: 1
  echo "before test"
  sh "date"
  sh "sleep 10"
  echo "test 1/3"
  sh "sleep 10"
  echo "test 2/3"
  sh "sleep 10"
  echo "test 3/3"
  sh "date"
}





On Friday, January 29, 2016 at 11:06:20 AM UTC-6, niristotle okram wrote:
>
> *Please Excuse & advise, if this is not appropriate to continue post in an 
> old post. *
>
> We are using the cloudbees jenkins. And are optimizing the workflows (the 
> new name: pipeline) to get some concurrency going. The way i understand 
> concurrency is the simultaneous execution. So a value of 
>
> concurrency: 1 --> allow only one instance for the stage
> concurrency: n --> allow 'n' number of instance for the stage
>   
> Am i am interpreting it correctly? 
>
> What if the concurrency is not specified (and the option to execute 
> concurrently in the workflow config is not checked)? Will the jobs run 
> serially, meaning stay as pending until the first job is over? 
> What is concurrency: 0 (a came accross that 0 means unlimited concurrency! 
> is this correct)?
>
>
> And to get some clarity, i used the workflow given by Sebastien here. But 
> to get some clarity on the timelines, i entered the date command to mark 
> the timelines for the stage's start and end. below is the script. 
>
>
> stage name: 'sync'
> node("master") {
>   echo "before sync"
>   sh "sleep 10"
>   echo "after sync"
>   sh "date"
> }
>
> stage name: 'build_and_test', concurrency: 1
> node("master") {
>   stage name: 'build'
>   echo "before build"
>   sh "date"
>   sh "sleep 10"
>   echo "build 1/3"
>   sh "sleep 10"
>   echo "build 2/3"
>   sh "sleep 10"
>   echo "build 3/3"
>   sh "date"
>
>   stage name: 'test', concurrency: 1
>   echo "before test"
>   sh "date"
>   sh "sleep 10"
>   echo "test 1/3"
>   sh "sleep 10"
>   echo "test 2/3"
>   sh "sleep 10"
>   echo "test 3/3"
>   sh "date"
> }
>
>
> I still notice the issue reported by Sebastien. i have set up 7 executors 
> and fired 4 jobs on the same workflow. 
> 1. All the 4 jobs triggered the first stage of sync
> 2. All the 4 jobs triggered the second stage of build_and_test which have 
> a concurrency: 1
> 3. NOT all the 4 triggers the proceeds to the 'stage name: 'test', 
> concurrency: 1' 
>
> Why are the jobs running concurrently for 'stage name: 'build_and_test', 
> concurrency: 1' ??
>
> IS my understanding on the concurrency flawed? 
>
> job console output:
>
> http://pastebin.com/n6tJJ0Zu
>
> http://pastebin.com/x9tryKUV
>
> http://pastebin.com/6hsan1KY
>
> http://pastebin.com/kPbtxKbj
>
>
> This is a simple timeline for all the 4 jobs
>
> Stage   Sync   'build_and_test', concurrency: 1'test', 
> concurrency: 1   
> 
>   26 Fri Jan 29 16:20:39 UTC 2016 Fri Jan 29 16:20:40 UTC 2016   Fri Jan 
> 29 16:21:10 UTC 2016   Fri Jan 29 16:21:11 UTC 2016   Fri Jan 29 16:21:41 
> UTC 2016 
>   27 Fri Jan 29 16:20:43 UTC 2016 Fri Jan 29 16:20:43 UTC 2016   Fri Jan 
> 29 16:21:14 UTC 2016   Entering stage test/Waiting for builds 
> [26]/Canceled since #28 got here 
>   28 Fri Jan 29 16:20:46 UTC 2016 Fri Jan 29 16:20:47 UTC 2016   Fri Jan 
> 29 16:21:17 UTC 2016   Entering stage test/Canceling older #27/Waiting 
> for builds [26]/Canceled since #29 got here 
>   29 Fri Jan 29 16:20:51 UTC 2016 Fri Jan 29 16:20:51 UTC 2016   Fri Jan 
> 29 16:21:22 UTC 2016   Fri Jan 29 16:21:42 UTC 2016   Fri Jan 29 16:22:12 
> UTC 2016 
> 
> 
> 
>
>
>
>
>
>
>
>
> On Tuesday, March 10, 2015 at 6:23:39 AM UTC-6, sebastien@gmail.com 
> wrote:
>  
>
>>
>> On Thursday, February 26, 2015 at 11:39:45 PM UTC+1, Jesse Glick wrote:
>>>
>>> On Thu, Feb 26, 2015 at 3:59 PM,  <sebastien@gmail.com> wrote: 
>&g

jenkinsCLI --- Exception in thread main java.net.SocketTimeoutException: connect timed out

2015-07-29 Thread niristotle okram
any suggestions/fixes for this jenkins-cli error?

I have a deploy job, which is parametrized (test, stage, prod). So, 
whenever there is a deploy to the staging env, i am trying to make 
Jenkins *slaves* execute a groovy script. Trying to test the 
jenkins-cli.jar, i got this error:

[jenkins@ip-10-0-0-92 scripts]$ java -jar jenkins-cli.jar -s 
https://my_jenkins_url.com/
Exception in thread main java.net.SocketTimeoutException: connect timed 
out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at 
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at 
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at 
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at hudson.cli.CLI.connectViaCliPort(CLI.java:203)
at hudson.cli.CLI.init(CLI.java:126)
at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)
at hudson.cli.CLI._main(CLI.java:466)
at hudson.cli.CLI.main(CLI.java:382)
Suppressed: java.io.EOFException: unexpected stream termination
at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:331)
at hudson.remoting.Channel.init(Channel.java:421)
at hudson.remoting.Channel.init(Channel.java:400)
at hudson.remoting.Channel.init(Channel.java:396)
at hudson.remoting.Channel.init(Channel.java:385)
at hudson.remoting.Channel.init(Channel.java:377)
at hudson.remoting.Channel.init(Channel.java:353)
at hudson.cli.CLI.connectViaHttp(CLI.java:157)
at hudson.cli.CLI.init(CLI.java:130)
... 3 more

I have done:

1. Set a fixed port for TCP/IP port for CLI and slaves  its listening on 
the master server
2. All ports are open between the jenkins nodes
3. Went through https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI


I am using nginx with valid SSL cert. 

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2b76b0ed-9b79-44d9-ba57-030007b294df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkinsCLI --- Exception in thread main java.net.SocketTimeoutException: connect timed out

2015-07-29 Thread niristotle okram
i got the help command working. I use the below command. It uses the 
private ip of the  jenkins master instead of the public. And in my case the 
comm is happening between the jenkins nodes which are in the same subnet. 


[jenkins@ip-10-0-0-92 scripts]$ java -jar jenkins-cli.jar 
-noCertificateCheck -s https://10.0.0.91/ help --username 12345 --password 
banana
Skipping HTTPS certificate checks altogether. Note that this is not secure 
at all.
  add-job-to-view
Adds jobs to view.
  build
Builds a job, and optionally waits until its completion.
  cancel-quiet-down
Cancel the effect of the quiet-down command.
  clear-queue
Clears the build queue.
  connect-node
Reconnect to a node.
  console
Retrieves console output of a build.
  copy-job
Copies a job.
  create-job
Creates a new job by reading stdin as a configuration XML file.
  create-node
Creates a new node by reading stdin as a XML configuration.
  create-view
Creates a new view by reading stdin as a XML configuration.
  delete-builds


So, the problem is likely the nginx in use ???





On Wednesday, July 29, 2015 at 2:32:29 PM UTC-7, niristotle okram wrote:

 any suggestions/fixes for this jenkins-cli error?

 I have a deploy job, which is parametrized (test, stage, prod). So, 
 whenever there is a deploy to the staging env, i am trying to make 
 Jenkins *slaves* execute a groovy script. Trying to test the 
 jenkins-cli.jar, i got this error:

 [jenkins@ip-10-0-0-92 scripts]$ java -jar jenkins-cli.jar -s 
 https://my_jenkins_url.com/
 Exception in thread main java.net.SocketTimeoutException: connect timed 
 out
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at 
 java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
 at 
 java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
 at 
 java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
 at java.net.Socket.connect(Socket.java:579)
 at hudson.cli.CLI.connectViaCliPort(CLI.java:203)
 at hudson.cli.CLI.init(CLI.java:126)
 at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)
 at hudson.cli.CLI._main(CLI.java:466)
 at hudson.cli.CLI.main(CLI.java:382)
 Suppressed: java.io.EOFException: unexpected stream termination
 at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:331)
 at hudson.remoting.Channel.init(Channel.java:421)
 at hudson.remoting.Channel.init(Channel.java:400)
 at hudson.remoting.Channel.init(Channel.java:396)
 at hudson.remoting.Channel.init(Channel.java:385)
 at hudson.remoting.Channel.init(Channel.java:377)
 at hudson.remoting.Channel.init(Channel.java:353)
 at hudson.cli.CLI.connectViaHttp(CLI.java:157)
 at hudson.cli.CLI.init(CLI.java:130)
 ... 3 more

 I have done:

 1. Set a fixed port for TCP/IP port for CLI and slaves  its listening on 
 the master server
 2. All ports are open between the jenkins nodes
 3. Went through https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI


 I am using nginx with valid SSL cert. 


-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bd88072c-1c01-4d03-a765-e908dddad78a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using jenkins-cli.jar groovy . . . is there some cleaver way to pass parameters into the Groovy script?

2015-07-29 Thread niristotle okram

did you got the answer of this? \

On Friday, March 22, 2013 at 1:33:04 PM UTC-7, Merrow, Frank wrote:

  So I am using Jenkins-cli to execute a groovy script in my Jenkins 
 servers . . . works great.

  

 Except now I want to pass that groovy script a parameter . . . 

  

 Does someone have some cleaver way of passing data into the Groovy script?

  

 Frank
  

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/90d7c97f-167a-4817-89fe-6a32e2907f45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


parameterizing the branch name for build job its effect in SCM Polling process

2015-06-08 Thread niristotle okram
Some version info: 

Git Client Plugin : 1.10.1
Git Plugin  :  2.2.5
jenkins  : 1.589


I have a simple jenkins job to perform the maven deploy Or maven release 
plugins from *a branch like (master or release branch) . Now, i changed it, 
the branch name is parameterized. Either the master or the release branch 
is specified before the job is manually triggered.  Some screenshots of the 
job's conf page. 

http://snag.gy/sn6aJ.jpg
http://snag.gy/2XR2B.jpg
http://snag.gy/pIX0L.jpg
http://snag.gy/vYASv.jpg
http://snag.gy/IIHhV.jpg

You will see from the screenshots that there is no default branch specified 
for the job. As of now, i see that the SCM polling is triggering the build 
from the master branch. i know that the dev are pushing on the master. I 
haven't had a chance to verify if the SCM polling triggers a build 
job/process when there is push to release branch.  

Then i came across this https://issues.jenkins-ci.org/browse/JENKINS-14276 
, i am lost in the comments. Please let me know what was the fix for this? 
Any particular version of Git Plugin? 


thanks
Okram






-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9cab94c0-df48-4e89-a625-ae6086c354cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.