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

Parameter can not used when use Declarative Pipeline checkout from subversion

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']])
      }
      }
      }
      }

            abayer Andrew Bayer
            alby tang alby
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: