Skip to content

Commit

Permalink
fix reporter generation sed (knative-extensions#456) (knative-extensi…
Browse files Browse the repository at this point in the history
…ons#463)

Signed-off-by: Ahmed Abdalla <aabdelre@redhat.com>
  • Loading branch information
devguyio authored Nov 25, 2021
1 parent bb73b38 commit 06ed003
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions openshift/ci-operator/update-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ echo "Generating PROW files in $OPENSHIFT"
make jobs
make ci-operator-config
# We have to do this manually, see: https://docs.ci.openshift.org/docs/how-tos/notification/
echo "==== Adding reporter_config to periodics ===="
# These version MUST match the ocp version we used above
for OCP_VERSION in 47; do
sed -i "/ name: periodic-ci-openshift-knative-eventing-kafka-release-${VERSION}-${OCP_VERSION}-e2e-aws-ocp-${OCP_VERSION}-continuous\n spec:/ r $TMPDIR/reporterConfig" "$PERIODIC_CONFIG"
done
if [[ "$VERSION" != "next" ]]; then
echo "==== Adding reporter_config to periodics ===="
# These version MUST match the ocp version we used above
for OCP_VERSION in 47 48 49; do
sed -i "/ name: periodic-ci-openshift-knative-eventing-kafka-release-${VERSION}-${OCP_VERSION}-e2e-aws-ocp-${OCP_VERSION}-continuous/ r $TMPDIR/reporterConfig" "$PERIODIC_CONFIG"
done
fi
echo "==== Changes made to $OPENSHIFT ===="
git status
echo "==== Commit changes to $OPENSHIFT and create a PR"

0 comments on commit 06ed003

Please sign in to comment.