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

Parameter can not used when use Declarative Pipeline checkout from subversion

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

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

        Attachments

          Activity

          Hide
          tom_ghyselinck Tom Ghyselinck added a comment -

          Hi,

          I think you need to use double quotes.

          Use

          remote: "svn_url@${params.svn}"
          

          instead of

          remote: 'svn_url@${params.svn}'
          
          Show
          tom_ghyselinck Tom Ghyselinck added a comment - Hi, I think you need to use double quotes. Use remote: "svn_url@${params.svn}" instead of remote: 'svn_url@${params.svn}'
          Hide
          alby tang alby added a comment -

          thanks~

          Show
          alby tang alby added a comment - thanks~
          Hide
          bitwiseman Liam Newman added a comment -

          Bulk closing resolved issues.

          Show
          bitwiseman Liam Newman added a comment - Bulk closing resolved issues.

            People

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

              Dates

              Created:
              Updated:
              Resolved: