Beanstalk deployment plugin for multi-region app? (AWSEB Deployment Plugin)

2017-09-14 Thread red 888
Looking at this plugin: 
https://wiki.jenkins.io/display/JENKINS/AWSEB+Deployment+Plugin

How do I use this to deploy to multiple regions? I have a single EB app 
across several regions (I gave it the same env and application name in 
every region).

Maybe I can call this as a step programatically in jenkinsfile 
multiple times for each region of my app?

-- 
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/5f87d687-eea4-4a2b-bcd4-cec367aa47a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Getting the Jira URL value from Jira plugin

2017-09-14 Thread t3knoid
I am using the Jira and Jira-ext plugins to integrate with a Jira server. I 
want to write a script where I have to enumerate the Jira URL (I dont want 
to hard code it in my script). Where can I get that value?

-- 
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/3d4aa1f3-5d63-4809-9518-9cfea743bce6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins slave (EC2 AWS plugin) fails occasionally when build takes too long with error "Caused: java.io.IOException: Unexpected termination of the channel"

2017-09-14 Thread Mike
I added ClientAliveInterval and ClientAliveCountMax parameters to the sshd 
configuration on our Jenkins agents to help prevent disconnects.  I also 
removed the monitoring plugin since we didn't use it.  I had noticed 
JavaMelody errors in the Jenkins log file at the same time the Jenkins 
agent disconnected.

On Monday, September 11, 2017 at 6:32:30 PM UTC-7, K S wrote:
>
> I have Jenkins configured to launch EC2 instances (via AWS plugin) to 
> execute a build.
> The actual build steps use the Execute Shell method, and launch ansible 
> scripts.
>
> I find that if the ansible script runs for too long, the Jenkins slave on 
> the EC2 system goes down.
> The Jenkins GUI shows this error:
>
> Connection was broken
>
> java.io.EOFException
>   at 
> java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2638)
>   at 
> java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3113)
>   at 
> java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:853)
>   at java.io.ObjectInputStream.(ObjectInputStream.java:349)
>   at 
> hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:48)
>   at 
> hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
>   at 
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
> Caused: java.io.IOException: Unexpected termination of the channel
>   at 
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
>
>
>
>
> Some googling lead to this page: 
> https://wiki.jenkins.io/display/JENKINS/Remoting+issue
> It suggests I check these log files:
> 1) connection logs on master - I checked these, and they have the same 
> information as stack trace.
> 2) slave logs - I do not know where to find these.  *The locations 
> suggested do not exist on my slave.*  
>
> I even inspected the files that the slave java process opens, and the only 
> file that seems like a log file ends up being empty:
>
> ubuntu@ip-172-31-93-175:~/support$ ps auxww | grep java | grep slave
> ubuntu25235  8.0  0.5 12211452 157616 ? Ssl  22:23   0:05 java 
> -jar /tmp/slave.jar
> ubuntu@ip-172-31-93-175:~/support$ sudo lsof | grep 25235  | grep -i log | 
> awk '{print $NF}' | sort | uniq
> /home/ubuntu/support/all_2017-09-11_22.23.07.log
> ubuntu@ip-172-31-93-175:~/support$ cat 
> /home/ubuntu/support/all_2017-09-11_22.23.07.log 
> ubuntu@ip-172-31-93-175:~/support$ 
>
>
>
> Has anyone run into this issue or know how or where to find the java slave 
> logs? 
>
> Thanks so much.
>
>
> *VERSION INFO:*
> *Master:*
> Jenkins ver. 2.60.2
> Java:  openjdk version "1.8.0_131"
>
> *Build node:*
> Launched via: AWS plugin: 
> https://wiki.jenkins.io/display/JENKINS/Amazon+EC2+Plugin (latest version)
>
> Ec2 instance running Ubuntu 14.04 and Java 8:
> ubuntu@ip-172-31-93-175:~$ cat /etc/*release* | grep VERSION
> VERSION="14.04.5 LTS, Trusty Tahr"
> VERSION_ID="14.04"
> ubuntu@ip-172-31-93-175:~$ *java -version*
> java version "1.8.0_144"
> Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
>
>
>
>
>
>

-- 
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/1c82b22f-c02c-4f01-9efb-6093bf8dbcf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mercurial checkout failure

2017-09-14 Thread jerome
Finally found the error, some CIFS share cache were used, now I mount all 
the drive with cache=none and I disabled the oplocks of the samba share, it 
seem to have fix the 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/89c5d1b7-6f8d-495d-866a-4db800950d50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running a bat file

2017-09-14 Thread jerome
I'm not sure if you are using pipeline or not, either way, when you said 
the command succeed, the fact that a batch complete doesn't make it 
successful, make sure to evaluate the %errorlevel%  after critical command. 
ALso if you are using pipeline, make sure to check if the returnStatus 
and returnStdout to make sure you can fetch some information.

Also, I'm not sure if asadmin can be run by your jenkins service (make sure 
it got permission to do so). If Jenkins is installed as a service, take 
care no GUI can be launch from that user. If your start-domain use any gui, 
you will need to run your Jenkins as a real user and keep that user login 
under Windows. 
Also does the asadmin is available into the PATH of your jenkins user, may 
want to provide a full path.

If you can give more meat around the way you run your batch command and 
some console output that would help to help 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/d4242e34-d82e-4a3e-b027-c05c03c6f972%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is the right contact for Jenkins infrastructure account issues?

2017-09-14 Thread Daniel Beck

> On 13. Sep 2017, at 18:00, 'Alexandra Goultiaeva' via Jenkins Users 
>  wrote:
> 
> On the reset password page it says "contact us to get your account 
> recovered", but I'm having a hard time finding any non-public contacts on 
> jenkins.io.
> 
> Whom can I contact if I'm having trouble with the system?

Contact information from 
https://wiki.jenkins.io/display/JENKINS/User+Account+on+Jenkins should work for 
most account related issues.

-- 
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/A3EF69EE-698B-4E2B-84FF-4B1088900855%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Dynamic Choice Parameter in Jenkinsfile

2017-09-14 Thread Viacheslav Dubrovskyi

def envList = ['all']
envList.add('CE=DBAL ARC=yes')
envList.add('CE=RMQ  CACHE=REDIS')

properties([ parameters([choice(choices: envList.join("\n"), 
description: 'List of enviroment used for test', name: 'ENVLIST')]) ])



08.09.2017 19:24, Shalabh srivastava пишет:

Hi,

How to use dynamic choice parameter in jenkinsfile?
--
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/6bbf662f-0eaf-470f-9b6e-72c505fea315%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
WBD,
Viacheslav Dubrovskyi

--
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/c67b13fe-0cb7-94b4-8a6d-e5e911cb4754%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running a bat file

2017-09-14 Thread harvey


On Wednesday, September 13, 2017 at 11:20:55 AM UTC+2, harvey wrote:
>
>
>
> On Tuesday, September 12, 2017 at 7:21:55 PM UTC+2, jer...@bodycad.com 
> wrote:
>>
>> Take care that you are actually chaining batch command. What is chaining 
>> batch, someone somewhere though it would be nice to make this super weird 
>> feature for batch script only (yeah a lot of sarcasm here, the first time 
>> you see this beahavior and realize wtf someone wanted to do this is beyond 
>> total common sense), where you call a batch from another batch script, the 
>> remaining in between one can be skipped entirely. Here's the documentation 
>> from https://jpsoft.com/help/call.htm which give a better explanation of 
>> this eye bleeding nightmare:
>>
>> WARNING! If you execute a batch file from inside another batch file 
>> without using CALL, the original batch file is terminated before the other 
>> one starts. This method of invoking a batch file from another is usually 
>> referred to as chaining. Note that if the batch file A.BTM uses CALL B, 
>> and B.BTM chains to the batch file C.BTM, on exit from C.BTM (without 
>> executing a CANCEL  command) 
>> processing of batch file A.BTM is resumed as if it had used CALL C.
>>
>
> But I am using CALL to run the other batch file. The problem is when I run 
> the build, it is completed successfully. But the server is still not 
> started. The commands works great in CMD and also I tried creating a batch 
> file and even it works fine. And again I tried calling the batch file I 
> created into Jenkins, yet there was no success. The problem still remained 
> and the server was still not started.
>
>>
>>
>> I suspect that the Jenkins shell execute the script you gave it as it is 
>> a call itself maybe, maybe the Jenkins people can shed some light on this.
>>
>
>
> Regards,
> Harvey
>

By using the following link: 
https://wiki.jenkins.io/display/JENKINS/ProcessTreeKiller, I edited the 
command as follows:

cd c:\glassfish3\bin\
asadmin start-domain
$BUILD_ID=dontKillMe 

But it didn't solve my problem though. I am sure that this is not the way. 
I am new user to Jenkins, I have no idea about using environment variables. 
Any help would be appreciated, I am blocked at this stage, would be 
grateful if anyone could guide me in this regard.

Regards,
Harvey

-- 
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/a3b7ef0b-1fbb-4bbc-b8a6-1cda2df84f1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.