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

checkout result null

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None
    • windows, svn, workflow-scm-step-plugin 2.11

      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
                  }
              }
      

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

              Created:
              Updated:
              Resolved: