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

JCasC extra slash `/` in repository name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Jenkins version: 2.295
      github-branch-source: 2.11.2

      It seems that via jcasc plugin it adds one extra slash on repository name after `https://github.com/` like bellow:

      My configuration is:

      multibranchPipelineJob('Automation-CI') {
          description('Job generated by DSL')
          branchSources {
              github {
                  id('Automation-CI')
                  scanCredentialsId('token')
                  repository('myproject/automation')
                  includes('*')
                  buildForkPRHead(false)
                  buildForkPRMerge(false)
                  buildOriginBranch(true)
                  buildOriginBranchWithPR(true)
                  buildOriginPRHead(true)
                  buildOriginPRMerge(true)
              }
          }
          orphanedItemStrategy {
              discardOldItems {
                  daysToKeep(5)
                  numToKeep(3)
              }
          }
      }
      

            Unassigned Unassigned
            kraken Krack
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: