feature/18688 #1

Manually merged
roberto.cirillo merged 2 commits from feature/18688 into master 2020-06-10 14:53:50 +02:00
1 changed files with 19 additions and 0 deletions

19
Jenkinsfile vendored
View File

@ -224,6 +224,25 @@ pipeline {
}
}
}
stage('generate release notes') {
steps {
script {
sh '''
ls -lrt ${AGENT_ROOT_FOLDER}/build_commits.csv
cat ${AGENT_ROOT_FOLDER}/build_commits.csv
'''
def report_text = sh(script: 'cat ${AGENT_ROOT_FOLDER}/build_commits.csv', returnStdout: true)?.trim()
def pjob = build(job: 'gCube-ReleaseNotes', wait: true, propagate: true,
parameters: [[$class: 'StringParameterValue', name: 'report', value: "${report_text}"],
[$class: 'StringParameterValue', name: 'report_number', value: "${env.BUILD_NUMBER}"],
[$class: 'StringParameterValue', name: 'gCube_release_version', value: "${params.gCube_release_version}"],
[$class: 'BooleanParameterValue', name: 'use_report_commits', value: true]]
)
}
}
}
}
// post-build actions