Unable to retrieve git reference using git parameter plugin. I am getting the below error while creating the builds

Viewed 1454

I am getting this error while creating builds. I have uninstalled Git parameter plugins. I have checked URL as well by which I am cloning the repo. Can someone suggest me what am I missing here.

The default value has been returned
No Git repository configured in  SCM configuration or plugin is configured wrong 
Options'Use repository' is set as: 'exapmle.git' 
Please check the configuration
2 Answers

I had this issue now on 2.361.1 - I used Jenkinsfile with the git parameter. When I started the build, it asked me for the parameter, but did not load any options.

It did it even after I duplicated another Jenkinsfile which worked. Then I noticed small note under the Jenkinsfile window - I disabled the Groovy sandbox and the note asked me to approve the script.

After the approval it started working; The current note is The script is already approved.

Related