Parameter can not used when use Declarative Pipeline checkout from subversion

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I want to manually enter the version of SVN that I need to build,but parameter doesn't work.

      pipeline{
      agent any
      parameters{
      string(name:'svn',defaultValue:'HEAD', description: '请输入svn编号,默认为最新' )
      }
      stages {
      stage('代码获取') {
      steps {
      checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '****', depthOption: 'infinity', ignoreExternalsOption: true, local: '.', remote: 'svn_url@${params.svn}']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']])
      }
      }
      }
      }

            Assignee:
            Andrew Bayer
            Reporter:
            tang alby
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: