[JIRA] (JENKINS-51961) Parameter can not used when use Declarative Pipeline checkout from subversion

0 views
Skip to first unread message

843102956@qq.com (JIRA)

unread,
Jun 15, 2018, 5:04:01 AM6/15/18
to jenkinsc...@googlegroups.com
tang alby created an issue
 
Jenkins / Improvement JENKINS-51961
Parameter can not used when use Declarative Pipeline checkout from subversion
Issue Type: Improvement Improvement
Assignee: Oleg Nenashev
Attachments: error.png
Components: _unsorted
Created: 2018-06-15 09:03
Environment: jenkins 2.127
Priority: Major Major
Reporter: tang alby

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

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Jun 15, 2018, 5:06:01 AM6/15/18
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Component/s: pipeline-model-definition-plugin
Component/s: _unsorted

o.v.nenashev@gmail.com (JIRA)

unread,
Jun 15, 2018, 5:06:02 AM6/15/18
to jenkinsc...@googlegroups.com

tom.ghyselinck@excentis.com (JIRA)

unread,
Jun 27, 2018, 4:26:02 AM6/27/18
to jenkinsc...@googlegroups.com
Tom Ghyselinck commented on Improvement JENKINS-51961
 
Re: Parameter can not used when use Declarative Pipeline checkout from subversion

Hi,

I think you need to use double quotes.

Use

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

instead of

remote: 'svn_url@${params.svn}'
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

alby (JIRA)

unread,
Jul 5, 2018, 3:15:01 AM7/5/18
to jenkinsc...@googlegroups.com
tang alby resolved as Fixed
 

thanks~

Change By: tang alby
Status: Open Resolved
Resolution: Fixed

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:45 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages