Skip to content

Commit

Permalink
Merge pull request #656 from Nordix/Run-basic-test-on-project-infra/m…
Browse files Browse the repository at this point in the history
…boukhalfa

🌱 Run prow triggerable basic e2e on project-infra and fix branch issue
  • Loading branch information
metal3-io-bot authored Mar 4, 2024
2 parents 2070a5d + 3a1c2e4 commit 25e7815
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
11 changes: 8 additions & 3 deletions jenkins/jobs/prow_integration_tests.pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ KUBECTL_SHA256=(env.KUBECTL_SHA256)

script {
UPDATED_REPO = "https://github.com/${env.REPO_OWNER}/${env.REPO_NAME}.git"
echo "Checkout ${UPDATED_REPO} main"
// Set defaults for non-PR jobs
ci_git_url = "https://github.com/metal3-io/project-infra.git"
ci_git_branch = "main"

if ("${PROJECT_REPO_ORG}" == "metal3-io" && "${PROJECT_REPO_NAME}" == "project-infra") {
ci_git_branch = (env.PULL_PULL_SHA) ?: (env.ghprbActualCommit) ?: "main"
} else {
ci_git_branch = "main"
}
echo "Checkout ${ci_git_url} branch ${ci_git_branch}"

def date = new Date()
def dateFormat = new SimpleDateFormat("yyyyMMddHHmmss")
def rand = new Random()
Expand Down
12 changes: 11 additions & 1 deletion prow/manifests/overlays/metal3/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ presubmits:
value: "TRUE"
image: docker.io/golang:1.19
imagePullPolicy: Always
# name: {job_prefix}_{proj}_{capm3_target_branch}_e2e_basic_test_{image_os}
# name: {job_prefix}-{proj}-{capm3_target_branch}-e2e-basic-test-{image_os}
- name: metal3-capm3-main-e2e-basic-test-centos
branches:
- main
Expand All @@ -1149,6 +1149,16 @@ presubmits:
always_run: false
# Until we have checked that it works, keep it optional
optional: true
# name: {job_prefix}-{proj}-{capm3_target_branch}-e2e-basic-test-{image_os}
- name: metal3-project_infra-main-e2e-basic-test-centos
branches:
- main
- release-1.6
agent: jenkins
# Don't run unless triggered to avoid wasting resources
always_run: false
# Until we have checked that it works, keep it optional
optional: true

metal3-io/community:
- name: markdownlint
Expand Down

0 comments on commit 25e7815

Please sign in to comment.