@@ -71,7 +71,7 @@ pipeline {
71
71
// 1. we run the pipeline NOT in DRY_RUN_MODE, because we want to send real PRs
72
72
// 2. we run the pipeline forcing sending real PRs, because we want so
73
73
// Because the rest of the following stages will need these variables to check for changes,
74
- // skipping this stage would not take effect in them, as they are covered by the
74
+ // skipping this stage would not take effect in them, as they are covered by the
75
75
// FORCE_SEND_PR check.
76
76
stage(' Check for spec changes' ){
77
77
when {
@@ -169,20 +169,22 @@ def generateStep(Map args = [:]){
169
169
170
170
def createPRDescription (commit ) {
171
171
def message = """
172
- ### What
173
- ECS logging specs automatic sync
172
+ ### What
174
173
175
- ### Why
176
- """
174
+ ECS logging specs automatic sync
175
+
176
+ ### Why
177
+
178
+ """
177
179
if (params. FORCE_SEND_PR ) {
178
- message + = " *Manually forced with the CI automation job.*"
180
+ message + = " *Manually forced with the CI automation job.*\n\n "
179
181
}
180
182
if (env?. SPECS_UPDATED ?. equals(' true' )){
181
183
def gitLog = sh(script : """
182
- git log --pretty=format:'* https://github.com/${ env.ORG_NAME} /${ env.ECS_REPO } /commit/%h %s' \
184
+ git log --pretty=format:'* https://github.com/${ env.ORG_NAME} /${ env.REPO } /commit/%h %s' \
183
185
${ commit} ...HEAD \
184
186
--follow -- spec \
185
- | sed 's/#\\ ([0-9]\\ +\\ )/https:\\ /\\ /github.com\\ /${ env.ORG_NAME} \\ /${ env.ECS_REPO } \\ /pull\\ /\\ 1/g' || true""" , returnStdout : true )
187
+ | sed 's/#\\ ([0-9]\\ +\\ )/https:\\ /\\ /github.com\\ /${ env.ORG_NAME} \\ /${ env.REPO } \\ /pull\\ /\\ 1/g' || true""" , returnStdout : true )
186
188
message + = " *Changeset*\n ${ gitLog} "
187
189
}
188
190
return message
0 commit comments