[JIRA] (JENKINS-57225) Remove the GIT SCM configuration prerequisites

5 views
Skip to first unread message

antoine.tran.11w@gmail.com (JIRA)

unread,
Apr 29, 2019, 12:29:02 PM4/29/19
to jenkinsc...@googlegroups.com
Antoine Tran created an issue
 
Jenkins / Improvement JENKINS-57225
Remove the GIT SCM configuration prerequisites
Issue Type: Improvement Improvement
Assignee: Boguslaw Klimas
Components: git-parameter-plugin
Created: 2019-04-29 16:28
Environment: Jenkins 2.60.3
Git parameter 0.9.6
Git client 2.7.1
Git 3.8.0
Priority: Minor Minor
Reporter: Antoine Tran

Goal:

To have a way to configure a Git parameter with an URL,  and without a Scm configuration. Then as usual, we can select on of the list of branches/tags. All of that without checkout by Git Parameter.

Essentially, I would like to have a light behavior that only does git ls-remote, but no checkout, and with a Url configuration in the Git Parameter, but not on the Scm configuration.

Why:

  1. Because in our project, we have multiple repositories to select version. Except for Jenkinsfile checkout, we don't want to checkout other repositories because we do that in the pipeline. This way, we prevent space and time lost.
  2. Also, in the case where we have a scripted pipeline in the Job (so no Jenkinsfile in Git repo), but we also want to list Git branches/tags of some repo. This is not possible because we can't both have a SCM configuration for pipeline AND a scripted job pipeline.

Workaround:

Remove Git Parameter from the job, add in the pipeline a input step with a list of  choice, populated with manual "git ls-remove" command.

Doc to adapt (source here):

 

Important! 
There is no need to set up anything special in plugin settings. 
This plugin will read GIT SCM configuration from your projects.
This plugin used directly the Git Plugin and Git Client Plugin.

 

 Thank you!

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

antoine.tran.11w@gmail.com (JIRA)

unread,
Apr 29, 2019, 12:34:02 PM4/29/19
to jenkinsc...@googlegroups.com
Antoine Tran updated an issue
Change By: Antoine Tran
Goal:

For both pipeline and freestyle job. To have a way to configure a Git parameter with an URL,  and without a Scm configuration. Then as usual, we can select on of the list of branches/tags. All of that without checkout by Git Parameter.


Essentially, I would like to have a light behavior that only does git ls-remote, but no checkout, and with a Url configuration in the Git Parameter, but not on the Scm configuration.

Why:
# Because in our project, we have multiple repositories to select version. Except for Jenkinsfile checkout, we don't want to checkout other repositories because we do that in the pipeline. This way, we prevent space and time lost.
# Also, in the case where we have a scripted pipeline in the Job (so no Jenkinsfile in Git repo), but we also want to list Git branches/tags of some repo. This is not possible because we can't both have a SCM configuration for pipeline AND a scripted job pipeline.


Workaround:

Remove Git Parameter from the job, add in the pipeline a input step with a list of  choice, populated with manual "git ls-remove" command.

Doc to adapt (source here):

 
{noformat}

Important!
There is no need to set up anything special in plugin settings.
This plugin will read GIT SCM configuration from your projects.
This plugin used directly the Git Plugin and Git Client Plugin.{noformat}
 

 Thank you!

 

thenj@protonmail.com (JIRA)

unread,
Jun 6, 2019, 12:33:02 PM6/6/19
to jenkinsc...@googlegroups.com
Jose Then edited a comment on Improvement JENKINS-57225
 
Re: Remove the GIT SCM configuration prerequisites
I agree this would be a great improvement. I am currently hitting this need when trying to configure a scripted pipeline with the Kubernetes Plugin. I am trying to get a list of Tags before I clone within one of my pods.

thenj@protonmail.com (JIRA)

unread,
Jun 6, 2019, 12:33:02 PM6/6/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages