Re: [BitBucket Branch Source] Double PR builds

2018-05-21 Thread Dan Tran
Anyone using BitBucket + Multi branch source plugin sees the same issue?

-D

-- 
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/4875304b-72b0-46ad-a39f-42863caf280a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Create a Jenkins Pipeline job for merge requests

2018-05-21 Thread Supertwister
Currently i have a freestyle job in Jenkins that triggering on Gitlab merge 
request event. This job runs my end-to-end test.

Now need to know how to send Gitlab the result of the test, In order to 
know whether to merge the branches or not. 

I also planning to convert the freestyle job to a Jenkins file.


On Monday, May 21, 2018 at 6:01:10 PM UTC+3, Brian Benson wrote:
>
> What have you tried?
>
> On Monday, May 21, 2018 at 8:20:40 AM UTC-6, Supertwister wrote:
>>
>> Hello,
>> I've started lately to use Jenkins and i need some help with creating a 
>> pipeline.
>>
>> I want to create the following pipeline:
>> For each merge request from develop to master in Gitlab, Trigger a 
>> Jenkins job that run an end-to-end test, And merge the branches in Gitlab 
>> only if the test succeeded.
>>
>> I have found the following article that gives me an explanation for most 
>> of the things that i need:
>>
>> https://vetlugin.wordpress.com/2017/01/31/guide-jenkins-pipeline-merge-requests/
>>
>> I'm still looking for an answer for one question:
>> How can Jenkins response to Gitlab with the result of the end-to-end test 
>> (Success/Fail), So Gitlab will know whether to merge to branches or not?
>>
>>
>> Please advise,
>> 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/8ac9f896-2e25-4040-80e2-7ec27dd2bccd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to run Jenkins inside docker container through ansible

2018-05-21 Thread Ramanathan Muthaiah

>
> This is starting the container but not able to run jenkins due to which i 
> am not able to login to jenkins host.
>
> Can anyone guide me what do to ?
>

Have you looked at the Docker container logs? 

/Ram

-- 
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/8d2fb2ec-0bb7-435d-a361-24856b0f0603%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline script : Run job once the first job finishes.

2018-05-21 Thread Ramanathan Muthaiah

>
>  node {
>
> stage('Build Virtual Machine') {
>
>
>
> build job: 'Misc_Jobs/VM_Request_And_Validation', parameters: [
>
> string(name: 'Hostname', value:'satclient8'),
>
> string(name:'DSType', value: "NAS")], wait: true
>
>
>
> }
>
> stage('Post Installation Stage') {
>
>
>
> build job: 'Misc_Jobs/SS_Install_Jboss', parameters: [
>
> string(name: 'Hostname', value:'satclient8'),
>
> string(name:'DSType', value: "NAS")]
>
>
>
> }
>
> }
>
>  
>
>  
> However I observed that the second job start running immediately after the 
> first one.
>

Have you looked at flow 
control, https://jenkins.io/doc/book/pipeline/syntax/#flow-control ?

Another option is to use 'when' 
directive, https://jenkins.io/doc/book/pipeline/syntax/#when

/Ram 

-- 
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/4ea1006a-63c8-4359-9742-039c00f947fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Create a Jenkins Pipeline job for merge requests

2018-05-21 Thread Brian Benson
What have you tried?

On Monday, May 21, 2018 at 8:20:40 AM UTC-6, Supertwister wrote:
>
> Hello,
> I've started lately to use Jenkins and i need some help with creating a 
> pipeline.
>
> I want to create the following pipeline:
> For each merge request from develop to master in Gitlab, Trigger a Jenkins 
> job that run an end-to-end test, And merge the branches in Gitlab only if 
> the test succeeded.
>
> I have found the following article that gives me an explanation for most 
> of the things that i need:
>
> https://vetlugin.wordpress.com/2017/01/31/guide-jenkins-pipeline-merge-requests/
>
> I'm still looking for an answer for one question:
> How can Jenkins response to Gitlab with the result of the end-to-end test 
> (Success/Fail), So Gitlab will know whether to merge to branches or not?
>
>
> Please advise,
> 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/874a5f60-acad-4639-abf7-79624286d8df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Create a Jenkins Pipeline job for merge requests

2018-05-21 Thread Supertwister
Hello,
I've started lately to use Jenkins and i need some help with creating a 
pipeline.

I want to create the following pipeline:
For each merge request from develop to master in Gitlab, Trigger a Jenkins 
job that run an end-to-end test, And merge the branches in Gitlab only if 
the test succeeded.

I have found the following article that gives me an explanation for most of 
the things that i need:
https://vetlugin.wordpress.com/2017/01/31/guide-jenkins-pipeline-merge-requests/

I'm still looking for an answer for one question:
How can Jenkins response to Gitlab with the result of the end-to-end test 
(Success/Fail), So Gitlab will know whether to merge to branches or not?


Please advise,
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/af75ba20-4381-4766-bad1-1f075e1d2fd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline script : Run job once the first job finishes.

2018-05-21 Thread Apurba Sarkar
 

Hi All,

 

I am very much new to Jenkins.  I need your help.

 

I have 2 jobs:

 

Misc_Jobs/VM_Request_And_Validation

 

Misc_Jobs/SS_Install_Jboss

 

 

I have created one simple pipeline using  Groovy Pipelines where the jobs 
should run one after another.

 

node {

stage('Build Virtual Machine') {

   

build job: 'Misc_Jobs/VM_Request_And_Validation', parameters: [

string(name: 'Hostname', value:'satclient8'),

string(name:'DSType', value: "NAS")], wait: true

   

}

stage('Post Installation Stage') {

   

build job: 'Misc_Jobs/SS_Install_Jboss', parameters: [

string(name: 'Hostname', value:'satclient8'),

string(name:'DSType', value: "NAS")]

   

}

}

 

 
However I observed that the second job start running immediately after the 
first one.

How to correct my script.

Regards,

Apurba

-- 
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/e6a107b0-071e-4a88-b2ad-6c04c0fb31bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unable to run Jenkins inside docker container through ansible

2018-05-21 Thread Bishwajit Samanta
Dear All,

I am not able to run jenkins inside docker container using ansible 
playbook. Jenkins is getting started but unable to run it 


- name: Download Jenkins Container
  docker_container: 
name: Jenkins_server 
image: jenkins 
state: started 
ports: 
  - "8080:8080"
  - "5:5"
command: sleep 1d 
volumes: 
  - /data 

This is starting the container but not able to run jenkins due to which i 
am not able to login to jenkins host.

Can anyone guide me what do to ?

-- 
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/4df7d6b5-4d20-48d9-9550-71d3fe54600f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Best way to connect agent on OSX

2018-05-21 Thread Will Wagner
I want to add a new agent running OSX. What is the recommended way of doing 
this?

It's very easy to get this working by using ssh as the launch agent. Does 
this give any less functionality than trying to get java web start working?

Are there up to date instructions anywhere on how to get java web start to 
run as a service on osx? If I try it it fails to start as a service.

Thanks
Will

-- 
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/26baa99b-dc42-4fd5-883d-b0833f5696af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.