21 lines
621 B
YAML
21 lines
621 B
YAML
---
|
|
# [샘플] Jenkins 파라미터 수정 command
|
|
# Jenkins job XML을 다루는 command 예시이며, oto -j 실행 모드를 요구하지 않는다.
|
|
|
|
property:
|
|
workspace: /path/to/project
|
|
|
|
pipeline:
|
|
id: main
|
|
workflow:
|
|
- exe: jenkins-param
|
|
|
|
commands:
|
|
# Jenkins job XML 파이프라인 파라미터 수정
|
|
- command: JenkinsParameterModify
|
|
id: jenkins-param
|
|
param:
|
|
content: "<hudson.model.ParametersDefinitionProperty><name>myParam</name><stringValue>default</stringValue></hudson.model.ParametersDefinitionProperty>"
|
|
name: "myParam"
|
|
value: "newValue"
|
|
setContent: <@property.modifiedContent>
|