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

Unable to use a remote git repository which uses SHA256 hashing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-client-plugin
    • None

      Hi,

      I'm trying to set up a new build job which need to do a checkout from a forgejo/gitea repository.
      This repository was created with a SHA256 hash algorithm.

      When the jenkins buildjob runs for the first time it creates a local repositiory using the following command:

      git init /buildsystem/.jenkins/....
      

      This command creates the local repository with the default hash algorithm, SHA1.
      Because of this, it is incompatible with the remote repo, resulting in the following error when fetching the repo.

      fatal: mismatched algorithms: client sha1; server sha256
      

      The complete build output: jenkins_git_sha256.txt

      Is SHA256 hashing supported, and if not, can it be added?
      The local repo creation should be done with the following command:

      git init --object-format=sha256 /buildsystem/.jenkins/....
      

      Regards,

      Tom

            Unassigned Unassigned
            toms Tom
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: