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/dda91845-c462-4d86-823c-dd1225046071%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to