@@ -71,7 +71,7 @@ pipeline {
7171 // 1. we run the pipeline NOT in DRY_RUN_MODE, because we want to send real PRs
7272 // 2. we run the pipeline forcing sending real PRs, because we want so
7373 // 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
7575 // FORCE_SEND_PR check.
7676 stage(' Check for spec changes' ){
7777 when {
@@ -169,20 +169,22 @@ def generateStep(Map args = [:]){
169169
170170def createPRDescription (commit ) {
171171 def message = """
172- ### What
173- ECS logging specs automatic sync
172+ ### What
174173
175- ### Why
176- """
174+ ECS logging specs automatic sync
175+
176+ ### Why
177+
178+ """
177179 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 "
179181 }
180182 if (env?. SPECS_UPDATED ?. equals(' true' )){
181183 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' \
183185 ${ commit} ...HEAD \
184186 --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 )
186188 message + = " *Changeset*\n ${ gitLog} "
187189 }
188190 return message
0 commit comments