name: autorelease-generate-release-notes
builders:
- shell: |
- # TODO: Remove this condition once stable/beryllium is no longer
- # officially maintained.
- if [ "$GERRIT_BRANCH" != "stable/beryllium" ]; then
- cd $WORKSPACE/scripts/release_notes_management
- java -jar target/autonotes.jar
+ cd $WORKSPACE/scripts/release_notes_management
+ java -jar target/autonotes.jar
+ if [ -f "$WORKSPACE/scripts/release_notes_management/projects/release-notes.rst" ]; then
+ mkdir -p $WORKSPACE/archives
+ cp -vf "$WORKSPACE/scripts/release_notes_management/projects/release-notes.rst" "$WORKSPACE/archives"
fi
- publisher:
publishers:
- postbuildscript:
builders:
- - shell: |
- mkdir -p archives/
- cp /var/log/sa/* $_
- # convert sar data to ascii format
- while IFS="" read -r s
- do
- [ -f "$s" ] && sar -A -f "$s" > archives/sar/sar${s//[!0-9]/}
- done < <(find /var/log/{sa,sysstat} -name "sa[0-9]*")
+ - shell: !include-raw: include-raw-autorelease-collect-sar.sh
script-only-if-succeeded: false
script-only-if-failed: false