Skip to content

Commit

Permalink
Add trigger into project infra
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammed Boukhalfa <mohammed.boukhalfa@est.tech>
  • Loading branch information
mboukhalfa committed Mar 7, 2024
1 parent b2b98d9 commit b21503d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jenkins/jobs/prow_integration_tests.pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ script {
UPDATED_REPO = "https://github.com/${env.REPO_OWNER}/${env.REPO_NAME}.git"
ci_git_url = "https://github.com/Nordix/metal3-project-infra.git"

if ("${PROJECT_REPO_ORG}" == "metal3-io" && "${PROJECT_REPO_NAME}" == "project-infra") {
ci_git_branch = (env.PULL_PULL_SHA) ?: (env.ghprbActualCommit) ?: "fetch-changes-from-pr-id/mboukhalfa"
if ("${env.REPO_OWNER}" == "metal3-io" && "${env.REPO_NAME}" == "project-infra") {
ci_git_branch = (env.PULL_PULL_SHA) ?: "fetch-changes-from-pr-id/mboukhalfa"
} else {
ci_git_branch = "fetch-changes-from-pr-id/mboukhalfa"
}
Expand All @@ -37,8 +37,8 @@ pipeline {
environment {
METAL3_CI_USER="metal3ci"
// Defined in the job project
REPO_ORG = "${PROJECT_REPO_ORG}"
REPO_NAME = "${PROJECT_REPO_NAME}"
REPO_ORG = "${env.REPO_OWNER}}"
REPO_NAME = "${env.REPO_NAME}"
// Defined in prow env vars
// https://docs.prow.k8s.io/docs/jobs/#job-environment-variables
REPO_BRANCH = "${env.PULL_BASE_REF}"
Expand Down

0 comments on commit b21503d

Please sign in to comment.