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

Handle Jenkinsfile scm information

    XMLWordPrintable

Details

    Description

      The payload contains a `scm` section.

      In the Jenkins 2.0 pipeline-as-code paradigm, a Jenkinsfile could contain this to define a scm:

      ```
      stage 'Checkout'
      git 'https://github.com/nasqueron/tests-prod-environment-behaves-correctly.git'
      ```

      When this method is used, `scm` section remains empty.

      Attachments

        Activity

          Actually the section `scm` is empty even if I set the git setting manually.
          I have a multi branch pipeline project where I set the git url. And the rest of the stages are read from the Jenkinsfile.

          I see that the "scm" section is empty.

          bibstha Bibek Shrestha added a comment - Actually the section `scm` is empty even if I set the git setting manually. I have a multi branch pipeline project where I set the git url. And the rest of the stages are read from the Jenkinsfile. I see that the "scm" section is empty.

          People

            Unassigned Unassigned
            dereckson Sébastien Santoro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: