Need pipeline script help

85 views
Skip to first unread message

Venkat S

unread,
Dec 6, 2016, 1:47:41 AM12/6/16
to Jenkins Users
I am very new for Jenkins. i am try to create Jenkins pipeline script. Please help me out develop pipeline script. if you have any syntax share with me.

Thanks
Venkat

Victor Martinez

unread,
Dec 6, 2016, 8:36:33 AM12/6/16
to Jenkins Users
The best way to understand jenkins itself and know about Jenkins Pipeline and some other features is the below page:

Cheers

xwyxw

unread,
Dec 8, 2016, 12:33:42 AM12/8/16
to Jenkins Users

Venkat S

unread,
Dec 8, 2016, 2:04:49 PM12/8/16
to jenkins...@googlegroups.com
Thanks all

Is this jenkins job DSL and jenkins pipeline is same or different. Actually i need to create pipeline for creating Docker RPM creation.Let me know your suggestions.

Thanks
Venkat
  

On 7 December 2016 at 21:33, xwyxw <daniel.c...@gmail.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (daniel.c...@gmail.com) Add cleanup rule | More info

This may enlight your way https://github.com/jenkinsci/pipeline-examples/tree/master/pipeline-examples

On Tuesday, December 6, 2016 at 5:47:41 PM UTC+11, Venkat S wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/B_2ecad_VkM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e5954dd4-8704-4b59-a3b2-50a624260cf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Venkat S

unread,
Dec 28, 2016, 3:14:08 PM12/28/16
to jenkins...@googlegroups.com
Hi All,

Simple question: How to change the jenkins home directory location? By default it points to /var/lib/jenkins whereas I want it to point to /mnt/home/jenkins. I have changed my $JENKINS_HOME to /mnt/home/jenkins but it doesn't help me.

I am getting jenkins Ui problem. see below error.  If i leave same /var/lib/jenkins/ it's working fine.

HTTP ERROR: 503

Problem accessing /. Reason:

    Service Unavailable


Powered by Jetty://

Kevin Yu

unread,
Dec 30, 2016, 1:05:09 PM12/30/16
to Jenkins Users
You should be able to change it in Manage Jenkins from Jenkins GUI


On Wednesday, December 28, 2016 at 12:14:08 PM UTC-8, Venkat S wrote:
Hi All,

Simple question: How to change the jenkins home directory location? By default it points to /var/lib/jenkins whereas I want it to point to /mnt/home/jenkins. I have changed my $JENKINS_HOME to /mnt/home/jenkins but it doesn't help me.

I am getting jenkins Ui problem. see below error.  If i leave same /var/lib/jenkins/ it's working fine.

HTTP ERROR: 503

Problem accessing /. Reason:

    Service Unavailable


Powered by Jetty://
On 8 December 2016 at 11:04, Venkat S <seel...@gmail.com> wrote:
Thanks all

Is this jenkins job DSL and jenkins pipeline is same or different. Actually i need to create pipeline for creating Docker RPM creation.Let me know your suggestions.

Thanks
Venkat
  
On 7 December 2016 at 21:33, xwyxw <daniel.c...@gmail.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (daniel.c...@gmail.com) Add cleanup rule | More info

This may enlight your way https://github.com/jenkinsci/pipeline-examples/tree/master/pipeline-examples

On Tuesday, December 6, 2016 at 5:47:41 PM UTC+11, Venkat S wrote:
I am very new for Jenkins. i am try to create Jenkins pipeline script. Please help me out develop pipeline script. if you have any syntax share with me.

Thanks
Venkat

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/B_2ecad_VkM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Venkat S

unread,
Jan 2, 2017, 10:15:01 PM1/2/17
to jenkins...@googlegroups.com
I have pipeline script like below

My question is when i am build this job. If some thing change in scm in Stage "B". I need to build this one only other two stages need to skip. How can skip  this stage A & C.

stage 'a'
node ('master'){

git branch: "${git_branch}", credentialsId: "${credentialsId}", url: 'http://'


sh "${tool 'mvn'}/bin/mvn -f obs-infra/pom.xml  clean install cobertura:cobertura -U -Dmaven.test.skip=false -Dcobertura.report.format=xml -s " 



stage 'B'

git branch: "${git_branch}", credentialsId: "${credentialsId}", url: 'https:commons.git'

sh "${tool 'mvn'}/bin/mvn -f obs-commons/pom.xml  clean install -DskipTests=true -s" 


stage 'c'


git branch: "${git_branch}", credentialsId: "${credentialsId}", url: ''http://kms.git"

sh "${tool 'mvn'}/bin/mvn -f obs-kms/pom.xml  clean install  -U -Dmaven.test.skip=true  " 
}

My question is when i am build this job. If some thing change in scm in Stage "B". I need to build this one only other two stages need to skip. How can skip  this stage A & C.


On 30 December 2016 at 10:05, Kevin Yu <sams...@gmail.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (sams...@gmail.com) Add cleanup rule | More info

You should be able to change it in Manage Jenkins from Jenkins GUI

On Wednesday, December 28, 2016 at 12:14:08 PM UTC-8, Venkat S wrote:
Hi All,

Simple question: How to change the jenkins home directory location? By default it points to /var/lib/jenkins whereas I want it to point to /mnt/home/jenkins. I have changed my $JENKINS_HOME to /mnt/home/jenkins but it doesn't help me.

I am getting jenkins Ui problem. see below error.  If i leave same /var/lib/jenkins/ it's working fine.

HTTP ERROR: 503

Problem accessing /. Reason:

    Service Unavailable


Powered by Jetty://
On 8 December 2016 at 11:04, Venkat S <seel...@gmail.com> wrote:
Thanks all

Is this jenkins job DSL and jenkins pipeline is same or different. Actually i need to create pipeline for creating Docker RPM creation.Let me know your suggestions.

Thanks
Venkat
  
On 7 December 2016 at 21:33, xwyxw <daniel.c...@gmail.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (daniel.c...@gmail.com) Add cleanup rule | More info

This may enlight your way https://github.com/jenkinsci/pipeline-examples/tree/master/pipeline-examples

On Tuesday, December 6, 2016 at 5:47:41 PM UTC+11, Venkat S wrote:
I am very new for Jenkins. i am try to create Jenkins pipeline script. Please help me out develop pipeline script. if you have any syntax share with me.

Thanks
Venkat

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/B_2ecad_VkM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/B_2ecad_VkM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages