The snippet generator is your friend: use "checkout: General SCM" there.
Björn PS: Normally such question belong to the jenkins-users list. Am Donnerstag, 4. Mai 2017 12:31:27 UTC+2 schrieb Ajeet Singh: > > Dear All, > how can i checkout code from CVS repository in jenkins pipeline script > > git example is given blow , please help me to checkout code from cvs repo. > > i seem cvs and git example on blow link , but its not working > > http://jenkins-job-builder.readthedocs.io/en/latest/scm.html > > > > node { > def mvnHome > stage('checkout'){ > git url: 'https://ada.hph.com/bitbucket/scm/ter/testrepo.git' > > mvnHome= "/opt/maven/apache-maven-2.0.9" > } > stage('Build') { > // Run the maven build > if (isUnix()) { > sh "'${mvnHome}/bin/mvn' -Dmaven.test.failure.ignore clean" > } else { > bat(/"${mvnHome}\bin\mvn" -Dmaven.test.failure.ignore clean > package/) > } > } > } > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/4a617f0d-bf40-416e-914a-7a496c58e6bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
