Jenkins pipeline script

42 views
Skip to first unread message

Venkat S

unread,
Dec 6, 2016, 1:53:17 AM12/6/16
to Jenkins Developers
Hi All
I am very new to Jenkins.please help me out to develop pipeline script. 

Venkat S

unread,
Jan 2, 2017, 10:21:48 PM1/2/17
to jenkin...@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  " 
}

On 5 December 2016 at 22:53, Venkat S <seel...@gmail.com> wrote:
Hi All
I am very new to Jenkins.please help me out to develop pipeline script. 

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/mUZSm9OF2-g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/bf7dcc4b-ae7e-4da2-a77f-3a4ffc919223%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Slide

unread,
Jan 2, 2017, 10:35:22 PM1/2/17
to jenkin...@googlegroups.com

Please don't post to both lists. The development list is for Jenkins core and plugin development, not for help with how to do things.


On Mon, Jan 2, 2017, 20:21 Venkat S <seel...@gmail.com> wrote:
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  " 
}

On 5 December 2016 at 22:53, Venkat S <seel...@gmail.com> wrote:
Hi All
I am very new to Jenkins.please help me out to develop pipeline script. 

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/mUZSm9OF2-g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAA1jVraQ-zhaGt_0qf%3D1PKzdAgQGg-qE3t1nzkFRVvmOR9Rghg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages