Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40232

Git Parameter Plugin doesn't need to clone

    XMLWordPrintable

Details

    Description

      From the plugin while selecting branches:

      "If you wipe out your workspace, the plugin needs to clone the repository before it can list the tags/revisions. This may take some time if you have a slow connection or the repository is big."

      That's not true - you can use `git ls-remote <remote-URL>`

      Attachments

        Issue Links

          Activity

            samskiter Sam Duke created issue -

            Hi samskiter
            You are right, but I don't use native git command in the plugin. I use implementation of org.jenkinsci.plugins.gitclient.GitClient interface.

            This interface have a defined method getRemoteReferences
            I will try use that and resolve this issue.
            I plan the next release at the turn of January and February

            klimas7 Boguslaw Klimas added a comment - Hi samskiter You are right, but I don't use native git command in the plugin. I use implementation of org.jenkinsci.plugins.gitclient.GitClient interface. This interface have a defined method getRemoteReferences I will try use that and resolve this issue. I plan the next release at the turn of January and February

            klimas7 would be nice to get this soon All out slaves/agents are ec2 on demand instances. Workspaces will not be there for any of them. It's a big of a hassle every time to build once just to populate the list of branches/tags.

            Thanks

            emoshaya_cognitoiq Ebrahim Moshaya added a comment - klimas7 would be nice to get this soon All out slaves/agents are ec2 on demand instances. Workspaces will not be there for any of them. It's a big of a hassle every time to build once just to populate the list of branches/tags. Thanks
            klimas7 Boguslaw Klimas made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            klimas7 Boguslaw Klimas made changes -
            Priority Minor [ 4 ] Major [ 3 ]

            Code changed in jenkins
            User: Boguslaw Klimas
            Path:
            src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java
            src/test/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinitionTest.java
            http://jenkins-ci.org/commit/git-parameter-plugin/734ac6b91911a05e47019908dd1b9650f766b72d
            Log:
            JENKINS-40232: PoC

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Boguslaw Klimas Path: src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java src/test/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinitionTest.java http://jenkins-ci.org/commit/git-parameter-plugin/734ac6b91911a05e47019908dd1b9650f766b72d Log: JENKINS-40232 : PoC

            Hi klimas7 I see you've started work on this on a POC branch. Have you had any chance to test out your changes? will it be ready for release soon? I'm very eager for this to be released as all our slaves are cloud based and terminate over night..In the morning, they lose all their workspaces and therefore this plugin can't be used with this setup.

            emoshaya_cognitoiq Ebrahim Moshaya added a comment - Hi klimas7 I see you've started work on this on a POC branch. Have you had any chance to test out your changes? will it be ready for release soon? I'm very eager for this to be released as all our slaves are cloud based and terminate over night..In the morning, they lose all their workspaces and therefore this plugin can't be used with this setup.

            Hi ebsmoshaya
            Yes, the changes have been tested but still require refactoring and error handling.
            Deadline for the next release is published on the wiki page

            Regards
            Boguslaw

            klimas7 Boguslaw Klimas added a comment - Hi ebsmoshaya Yes, the changes have been tested but still require refactoring and error handling. Deadline for the next release is published on the wiki page Regards Boguslaw

            Code changed in jenkins
            User: klimas7
            Path:
            README.textile
            pom.xml
            src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterRebuild.java
            http://jenkins-ci.org/commit/git-parameter-plugin/0fd993b9e668ecc4840010c06e567b09aaee0aa6
            Log:
            Merge branch 'master' into feature/JENKINS-40232

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: klimas7 Path: README.textile pom.xml src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterRebuild.java http://jenkins-ci.org/commit/git-parameter-plugin/0fd993b9e668ecc4840010c06e567b09aaee0aa6 Log: Merge branch 'master' into feature/ JENKINS-40232

            Code changed in jenkins
            User: Boguslaw Klimas
            Path:
            src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java
            src/main/resources/net/uaznia/lukanus/hudson/plugins/gitparameter/Messages.properties
            src/main/resources/net/uaznia/lukanus/hudson/plugins/gitparameter/Messages_pl.properties
            src/test/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinitionTest.java
            http://jenkins-ci.org/commit/git-parameter-plugin/1fb81a9c39dd215c82ad4751466d4ceb47da1c31
            Log:
            Merge pull request #43 from jenkinsci/feature/JENKINS-40232

            Feature/jenkins 40232

            Compare: https://github.com/jenkinsci/git-parameter-plugin/compare/81198692f868...1fb81a9c39dd

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Boguslaw Klimas Path: src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java src/main/resources/net/uaznia/lukanus/hudson/plugins/gitparameter/Messages.properties src/main/resources/net/uaznia/lukanus/hudson/plugins/gitparameter/Messages_pl.properties src/test/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinitionTest.java http://jenkins-ci.org/commit/git-parameter-plugin/1fb81a9c39dd215c82ad4751466d4ceb47da1c31 Log: Merge pull request #43 from jenkinsci/feature/ JENKINS-40232 Feature/jenkins 40232 Compare: https://github.com/jenkinsci/git-parameter-plugin/compare/81198692f868...1fb81a9c39dd
            klimas7 Boguslaw Klimas made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]

            Release 0.8.0

            klimas7 Boguslaw Klimas added a comment - Release 0.8.0
            klimas7 Boguslaw Klimas made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            klimas7 Boguslaw Klimas made changes -
            Link This issue is blocking JENKINS-55769 [ JENKINS-55769 ]

            People

              klimas7 Boguslaw Klimas
              samskiter Sam Duke
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: