Skip to content

Commit

Permalink
Changing aimetpro branch for aimet extra when PR is raised on branche…
Browse files Browse the repository at this point in the history
…s other than develop

Signed-off-by: Mohit Prajapati <quic_mprajapa@quicinc.com>
  • Loading branch information
quic-mprajapa authored and quic-bharathr committed Nov 7, 2024
1 parent b169617 commit 9dafb38
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,16 @@ def callAimetExtra(target_branch) {
// setting USE LINARO value to EMPTY to rebuild docker image
using_linaro=""
}
if (target_branch != "develop") {

if (target_branch.startswith("release-aimet")) {
echo "Running AIMET additional stages on ${CHANGE_TARGET} branch ..."
build job: "AIMET-Extra", parameters: [string(name: 'AIMET_GIT_COMMIT', value: "${CHANGE_BRANCH}"), string(name: 'PROJECT_BRANCH', value: target_branch), string(name: 'USE_LINARO', value: "${using_linaro}"), string(name: 'PREBUILT_DOCKER_IMAGE_URL', value: "${params.PREBUILT_DOCKER_IMAGE_URL}"), string(name: 'AIMETPRO_BRANCH', value: target_branch)]
}
else if (target_branch != "develop") {
echo "Running AIMET additional stages on ${CHANGE_TARGET} branch ..."
build job: "AIMET-Extra", parameters: [string(name: 'AIMET_GIT_COMMIT', value: "${CHANGE_BRANCH}"), string(name: 'PROJECT_BRANCH', value: target_branch), string(name: 'USE_LINARO', value: "${using_linaro}"), string(name: 'PREBUILT_DOCKER_IMAGE_URL', value: "${params.PREBUILT_DOCKER_IMAGE_URL}")]
} else {
}
else {
echo "Running AIMET additional stages on develop branch ..."
build job: "AIMET-Extra", parameters: [string(name: 'AIMET_GIT_COMMIT', value: "${CHANGE_BRANCH}"), string(name: 'USE_LINARO', value: "${using_linaro}"), string(name: 'PREBUILT_DOCKER_IMAGE_URL', value: "${params.PREBUILT_DOCKER_IMAGE_URL}")]
}
Expand Down

0 comments on commit 9dafb38

Please sign in to comment.