Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jobs/sync-stream-metadata: also sync release notes #501

Merged
merged 1 commit into from
May 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions jobs/sync-stream-metadata.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ cosaPod(configMaps: ["fedora-messaging-cfg"], secrets: ["fedora-messaging-coreos
stream.metadata.update --stream ${stream}
""")
}
// Currently, we always re-upload release notes. We don't want to
// falsely emit a stream.metadata.update message when only release
// notes changed, and also the way change detection works above
// doesn't mesh well with freshly regenerated data.
shwrap("""
python -c 'import sys, yaml, json; json.dump(yaml.safe_load(sys.stdin.read()), sys.stdout)' \
< release-notes/${stream}.yaml > release-notes/${stream}.json
aws s3 cp --acl public-read --cache-control 'max-age=60' \
release-notes/${stream}.json s3://fcos-builds/release-notes/${stream}.json
""")
}
}
}