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

Pipeline projects with wrong GIT Repository URL with Github Enterprise

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • None
    • 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")
      

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

              Created:
              Updated:
              Resolved: