Skip to content

Commit

Permalink
Merge pull request #247 from Nordix/add/capm3-main-branch-reference
Browse files Browse the repository at this point in the history
Add main branch references for CAPM3
  • Loading branch information
metal3-io-bot authored Oct 15, 2021
2 parents b4f5367 + 191614b commit 96ffcd4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion jenkins/scripts/bare_metal_lab/files/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#
# Set the Cluster Api Metal3 provider branch to checkout
#
#export CAPM3BRANCH="${CAPM3BRANCH:-master}"
#export CAPM3BRANCH="${CAPM3BRANCH:-main}"

#
# Force deletion of the BMO and CAPM3 repositories before cloning them again
Expand Down
4 changes: 2 additions & 2 deletions jenkins/scripts/files/run_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ then
then
export CAPM3_LOCAL_IMAGE_BRANCH="release-0.4"
else
export CAPM3_LOCAL_IMAGE_BRANCH="master"
export CAPM3_LOCAL_IMAGE_BRANCH="main"
fi
fi

Expand Down Expand Up @@ -119,7 +119,7 @@ then
then
export CAPM3_LOCAL_IMAGE_BRANCH="release-0.4"
else
export CAPM3_LOCAL_IMAGE_BRANCH="master"
export CAPM3_LOCAL_IMAGE_BRANCH="main"
fi
fi

Expand Down
7 changes: 5 additions & 2 deletions jenkins/scripts/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ TESTS_FOR="${TESTS_FOR:-integration_test}"
BARE_METAL_LAB=false

# To Do: Remove the following lines once we change to main branch for all the repos
if [[ "${PROJECT_REPO_ORG}" == "metal3-io" && "${PROJECT_REPO_NAME}" == "ip-adress-manager" ]]
if [[ "${PROJECT_REPO_ORG}" == "metal3-io" ]]
then
REPO_BRANCH="main"
if [[ "${PROJECT_REPO_NAME}" == "ip-adress-manager" || "${PROJECT_REPO_NAME}" == "cluster-api-provider-metal3" ]]
then
REPO_BRANCH="main"
fi
fi


Expand Down
19 changes: 11 additions & 8 deletions prow/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ branch-protection:
contexts: ["test-integration"]
cluster-api-provider-metal3:
branches:
main:
required_status_checks:
contexts: ["test-integration"]
master:
required_status_checks:
contexts: ["test-integration"]
Expand Down Expand Up @@ -358,7 +361,7 @@ presubmits:
env:
- name: IS_CONTAINER
value: "TRUE"
image: quay.io/metal3-io/capm3-unit:master
image: quay.io/metal3-io/capm3-unit:main
imagePullPolicy: Always
- name: golint
always_run: true
Expand All @@ -373,7 +376,7 @@ presubmits:
env:
- name: IS_CONTAINER
value: "TRUE"
image: quay.io/metal3-io/capm3-unit:master
image: quay.io/metal3-io/capm3-unit:main
imagePullPolicy: Always
- name: govet
always_run: true
Expand All @@ -388,7 +391,7 @@ presubmits:
env:
- name: IS_CONTAINER
value: "TRUE"
image: quay.io/metal3-io/capm3-unit:master
image: quay.io/metal3-io/capm3-unit:main
imagePullPolicy: Always
- name: markdownlint
always_run: false
Expand Down Expand Up @@ -435,7 +438,7 @@ presubmits:
env:
- name: IS_CONTAINER
value: "TRUE"
image: quay.io/metal3-io/capm3-unit:master
image: quay.io/metal3-io/capm3-unit:main
imagePullPolicy: Always
- name: unit
always_run: true
Expand All @@ -450,7 +453,7 @@ presubmits:
env:
- name: IS_CONTAINER
value: "TRUE"
image: quay.io/metal3-io/capm3-unit:master
image: quay.io/metal3-io/capm3-unit:main
imagePullPolicy: Always
- name: manifestlint
always_run: true
Expand Down Expand Up @@ -613,7 +616,7 @@ presubmits:
env:
- name: IS_CONTAINER
value: "TRUE"
image: quay.io/metal3-io/capm3-unit:master
image: quay.io/metal3-io/capm3-unit:main
imagePullPolicy: Always
- name: generate
always_run: true
Expand All @@ -628,7 +631,7 @@ presubmits:
env:
- name: IS_CONTAINER
value: "TRUE"
image: quay.io/metal3-io/capm3-unit:master
image: quay.io/metal3-io/capm3-unit:main
imagePullPolicy: Always
- name: manifestlint
always_run: true
Expand Down Expand Up @@ -717,7 +720,7 @@ presubmits:
env:
- name: IS_CONTAINER
value: "TRUE"
image: quay.io/metal3-io/capm3-unit:master
image: quay.io/metal3-io/capm3-unit:main
imagePullPolicy: Always
- name: manifestlint
always_run: true
Expand Down

0 comments on commit 96ffcd4

Please sign in to comment.