Declarative Pipeline implicit checkout fails with GitHub app credentials

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I uploaded the log that shows that I configured the github app as mentioned in the docs but the declarative checkout doesn't work, all other features work. I got it working by manually configuring GitSCM but it's a bad experience after doing so much setup work for the Github app. 

      How I fixed it: 
      options {
      skipDefaultCheckout true
      }

      stages {
      stage('Checkout') {
      steps {
      checkout([
      $class: 'GitSCM',
      branches: [[name: '*/main']],
      doGenerateSubmoduleConfigurations: false,
      extensions: [],
      submoduleCfg: [],
      userRemoteConfigs: [[
      credentialsId: 'ssh-github',
      url: 'git@github.com:rootitnow/rootstrap.git'
      ]]
      ])
      }
      }

            Assignee:
            Unassigned
            Reporter:
            Tanguille
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: