Pipeline projects with wrong GIT Repository URL with Github Enterprise

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Blocker
    • None
    • Environment:
      Jenkins v2.289.3
      configuration-as-code plugin v1.52

      I have the following pipeline configuration DSL:

       pipelineJob("SOMEJOB") {	
        definition {
          cpsScm {			
            scm {
             git {
                remote {
      	    github("https://github.myenterprise.ch/someorg/somerepo.git", "https")
      	  }
      	}
            }
           }
         }
      }
      

      And here the Github Enterprise configuration:

      unclassified:
          gitHubConfiguration:
            endpoints:
            - apiUri: "https://github.myenterprise.ch/api/v3"
              name: "My Github"
      

      After deploying the Jenkins CASC the project repository URL is
      https://github.com/https://github.myenterprise.ch/someorg/somerepo.git.git and the pipeline fails out of obvious reasons.

      Not sure if this is a bug or a misconfiguration, but any help would be appreciated.

      **********************
      Edit:Ā The issue is solved by usingĀ 

      github("someorg/somerepo", "https", "github.myenterprise.ch")
      

            Assignee:
            Unassigned
            Reporter:
            Stefan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: