Skip to content

Commit

Permalink
bugfix: the reactions not work well
Browse files Browse the repository at this point in the history
  • Loading branch information
yudong2015 committed Jun 13, 2023
1 parent 8264c2c commit 0d30687
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/ks-devops/templates/cluster-step-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
required: true
- name: importCodeRepo
type: importCodeRepo
reactions: {{`[{"target": "url", "fulfill": {"state": {"value": "{{$self.value?.url}}"}}}, {"target": "credentialsId", "fulfill": {"state": {"value": "{{$self.value?.secret}}"}}}]`}}
reactions: {{`'[{"target": "url", "fulfill": {"state": {"value": "{{$context?.getRepoUrl?.($self.value)}}"}}}, {"target": "credentialsId", "fulfill": {"state": {"value": "{{$self.value?.secret}}"}}}]'`}}
template: |
{{`{
"arguments": [
Expand Down Expand Up @@ -86,7 +86,7 @@ metadata:
spec:
runtime: dsl
parameters:
- name: url
- name: remote
type: string
display: 'Repository URL'
required: true
Expand All @@ -95,15 +95,15 @@ spec:
display: 'Credential Name'
- name: importCodeRepo
type: importCodeRepo
reactions: {{`[{"target": "url", "fulfill": {"state": {"value": "{{$self.value?.url}}"}}}, {"target": "credentialsId", "fulfill": {"state": {"value": "{{$self.value?.secret}}"}}}]`}}
reactions: {{`'[{"target": "remote", "fulfill": {"state": {"value": "{{$context?.getRepoUrl?.($self.value)}}"}}}, {"target": "credentialsId", "fulfill": {"state": {"value": "{{$self.value?.secret}}"}}}]'`}}
template: |
{{`{
"arguments": [
{
"key": "scm",
"value": {
"isLiteral": false,
"value": "[$class: 'SubversionSCM', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '{{.param.credentialsId.name}}', depthOption: 'infinity', ignoreExternalsOption: true, local: '.', remote: '{{.param.url}}']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]"
"value": "[$class: 'SubversionSCM', locations: [[cancelProcessOnExternalsFail: true, credentialsId: '{{.param.credentialsId.name}}', depthOption: 'infinity', ignoreExternalsOption: true, local: '.', remote: '{{.param.remote}}']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]"
}
},
{
Expand Down

0 comments on commit 0d30687

Please sign in to comment.