Skip to content

Commit

Permalink
Update CI temprate (knative#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
nak3 authored Nov 11, 2022
1 parent e1fb5de commit cf849bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 11 additions & 13 deletions openshift/ci-operator/generate-ci-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,26 @@ EOF
}

function generate_cron_expression {
if [[ "$branch" == "knative-v0.25.3" ]]; then
if [[ "$branch" == "knative-v1.8" ]]; then
echo '0 19 * * 1-5'
elif [[ "$branch" == "knative-v1.9" ]]; then
echo '0 1 * * 1-5'
elif [[ "$branch" == "knative-v0.26" ]]; then
elif [[ "$branch" == "knative-v1.10" ]]; then
echo '0 3 * * 1-5'
elif [[ "$branch" == "knative-v1.0" ]]; then
elif [[ "$branch" == "knative-v1.11" ]]; then
echo '0 5 * * 1-5'
elif [[ "$branch" == "knative-v1.1" ]]; then
elif [[ "$branch" == "knative-v1.12" ]]; then
echo '0 7 * * 1-5'
elif [[ "$branch" == "knative-v1.2" ]]; then
elif [[ "$branch" == "knative-v1.13" ]]; then
echo '0 9 * * 1-5'
elif [[ "$branch" == "knative-v1.3" ]]; then
echo '0 11 * * 1-5'
elif [[ "$branch" == "knative-v1.4" ]]; then
elif [[ "$branch" == "knative-v1.14" ]]; then
echo '0 11 * * 1-5'
elif [[ "$branch" == "knative-v1.5" ]]; then
elif [[ "$branch" == "knative-v1.15" ]]; then
echo '0 13 * * 1-5'
elif [[ "$branch" == "knative-v1.6" ]]; then
elif [[ "$branch" == "knative-v1.16" ]]; then
echo '0 15 * * 1-5'
elif [[ "$branch" == "knative-v1.7" ]]; then
elif [[ "$branch" == "knative-v1.17" ]]; then
echo '0 17 * * 1-5'
elif [[ "$branch" == "knative-v1.8" ]]; then
echo '0 19 * * 1-5'
fi
}

Expand Down
2 changes: 1 addition & 1 deletion openshift/ci-operator/update-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ CURDIR=$(dirname $0)
# $1=branch $2=openshift $3=promotion_disabled $4=generate_continuous $5=internal_tls_enabled(optional)
$CURDIR/generate-ci-config.sh knative-$VERSION 4.8 true false > ${CONFIG}__48.yaml
$CURDIR/generate-ci-config.sh knative-$VERSION 4.9 true false > ${CONFIG}__49.yaml
$CURDIR/generate-ci-config.sh knative-$VERSION 4.10 true false > ${CONFIG}__410.yaml
$CURDIR/generate-ci-config.sh knative-$VERSION 4.11 true false > ${CONFIG}__411.yaml
$CURDIR/generate-ci-config.sh knative-$VERSION 4.11 false true true > ${CONFIG}__411.yaml

# Append missing lines to the mirror file.
Expand Down

0 comments on commit cf849bf

Please sign in to comment.