jfrog / jenkins-jfrog-plugin

Easy integration between Jenkins and the JFrog Platform.
https://github.com/jfrog/jenkins-jfrog-plugin
Apache License 2.0
39 stars 17 forks source link

Add the Git plugin as a dependency #19

Closed yahavi closed 1 year ago

yahavi commented 1 year ago

Resolve the following issue:

  1. Add clone stage:
    stage('Clone') {
    steps {
        git branch: 'master', url: "https://github.com/jfrog/project-examples.git"
    }
    }
  2. Receive the following error:
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
    WorkflowScript: 9: Invalid parameter “branch”, did you mean “name”? @ line 9, column 21.
                   git branch: ‘master’, url: “https://github.com/jfrog/project-examples.git”

The examples in https://github.com/jfrog/jenkins-jfrog-plugin/pull/18 may not work without this.