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

API to determine for a Github repository and branch name if it contains a Jenkinsfile

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • blueocean-plugin
    • None

      Use case

      • When the user clicks on a repository in the list
        • Jenkinsfile is present they will go to the executing Pipeline
        • Jenkinsfile is not present they will segue to the Editor

      Notes
      On click we can use https://developer.github.com/v3/repos/contents/ to determine if there is a Jenkinsfile there or not.
      Bitbucket have this too https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/downloads/%7Bfilename%7D

      Request

            Unassigned Unassigned
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: