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

checkout result null

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Labels:
      None
    • Environment:
      windows, svn, workflow-scm-step-plugin 2.11
    • Similar Issues:

      Description

      Dear Team,

       

      I try use checkout a svn repository and result a scmVars, but it is null, for example:

       

              stage('Checkout') {
                  steps {
                      deleteDir()
                      script {
                          def scmVars = checkout([$class: 'SubversionSCM', additionalCredentials: [[credentialsId: '8ae1ae5d-39de-472c-aa53-1ceb92af3e68', realm: '... Subversion Authorization Realm']], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '5bfd55f2-41c7-4b05-ba0e-69441fd47796', depthOption: 'infinity', ignoreExternalsOption: false, local: '.', remote: 'https://url']], quietOperation: false, workspaceUpdater: [$class: 'UpdateUpdater']])
                          if (env.Build == 'true') {
                              echo '11:'+env.Build
                          }
                          svnrevision = scmVars.SVN_REVISION
                          echo "svn:${svnrevision} ${scmVars}"  //result null [:]
                      }
                      echo "svn:${svnrevision}" + svnrevision
                  }
              }
      

        Attachments

          Activity

          Hide
          zwmyxzs weimin zhao added a comment -

          I configured it wrong, sorry.

          Show
          zwmyxzs weimin zhao added a comment - I configured it wrong, sorry.
          Hide
          zwmyxzs weimin zhao added a comment -

          I configured it wrong, sorry

          Show
          zwmyxzs weimin zhao added a comment - I configured it wrong, sorry

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            zwmyxzs weimin zhao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: