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

Gitea-plugin cannot build tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • gitea-plugin
    • None
    • java.runtime.name OpenJDK Runtime Environment
      java.runtime.version 1.8.0_242-b08
      JENKINS_VERSION 2.204.2
      Gitea-plugin 1.2.0

      When configuring an organization with Behaviours - Discover Tags, and adding a Build-Strategy for tags, the discovered tags cannot be built with this error.

      hudson.plugins.git.GitException: Command "git fetch --tags --progress --depth=1 – https://<gitea>/project.git +refs/heads/0.1.4.test:refs/remotes/origin/0.1.4.test" returned status code 128:
       stdout: 
       stderr: fatal: Couldn't find remote ref refs/heads/0.1.4.test
      

      I think the command should be something like:

       git fetch --tags --progress – https://<gitea>/project.git +refs/tags/0.1.4.test:refs/tags/0.1.4.test
      

            Unassigned Unassigned
            christophg Christoph Gritschenberger
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: