@@ -54,8 +54,6 @@ def copyReleaseNotes(versionBefore, versionAfter) {
54
54
file : ' CHANGELOG.md' ,
55
55
text : " # Release ${ versionAfter.substring(1)} (${ today} )\n\n ${ releaseNotes} \n\n ${ changeLog} " ,
56
56
)
57
- // Restore the release notes from the template
58
- sh ' cp docs/RELEASENOTES.template.md RELEASENOTES.md'
59
57
}
60
58
61
59
def testExampleApp (String app ) {
@@ -119,6 +117,11 @@ pipeline {
119
117
url : ' git@github.com:realm/react-realm-context.git'
120
118
]]
121
119
])
120
+
121
+ // Set the email and name used when committing
122
+ sh ' git config --global user.email "ci@realm.io"'
123
+ sh ' git config --global user.name "Jenkins CI"'
124
+
122
125
// Setting the TAG_NAME env as this is not happening when skipping default checkout.
123
126
script {
124
127
env. TAG_NAME = sh(
@@ -303,6 +306,7 @@ pipeline {
303
306
script {
304
307
copyReleaseNotes(versionBefore, nextVersion)
305
308
}
309
+
306
310
// Create a draft release on GitHub
307
311
script {
308
312
withCredentials([
@@ -312,9 +316,8 @@ pipeline {
312
316
}
313
317
}
314
318
315
- // Set the email and name used when committing
316
- sh ' git config --global user.email "ci@realm.io"'
317
- sh ' git config --global user.name "Jenkins CI"'
319
+ // Restore the release notes from the template
320
+ sh ' cp docs/RELEASENOTES.template.md RELEASENOTES.md'
318
321
319
322
// Stage the updates to the files, commit and tag the commit
320
323
sh ' git add package.json package-lock.json CHANGELOG.md RELEASENOTES.md'
0 commit comments