Skip to content

Commit

Permalink
feat(ci): trigger docker gha from pipeline
Browse files Browse the repository at this point in the history
* Trigger the Camunda Docker repo GHA workflow from the Daily CE pipeline.

Related to CAMTEAM-231, closes camunda#1847
  • Loading branch information
koevskinikola authored Mar 24, 2022
1 parent fd95a42 commit f2be157
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .ci/daily/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,36 @@ pipeline {
])
}
}
stage('Trigger Docker CE GHA') {
when {
branch cambpmDefaultBranch();
}
agent {
kubernetes {
cloud "kubernetes"
label "${utils.envPrefix()}ci-infra-camunda-cloud-build_${env.JOB_BASE_NAME.take(15)}-${env.BUILD_ID}"
defaultContainer 'alpine'
yaml org.camunda.helper.Podspec.getAgentPodspec(this, 'alpine-small', [
useStableNodePool: false
])
}
}
environment {
// define helper script input arguments
INPUT_OWNER = 'camunda'
INPUT_REPO = 'docker-camunda-bpm-platform'
// ensure that the GHA trigger works for maintenance branches as well
INPUT_REF = cambpmGetDockerRepoBranch()
INPUT_WORKFLOW_FILE_NAME = 'build-test-and-publish-ce.yml'
INPUT_WAIT_INPUT_WAIT_WORKFLOW = 'true'
}
steps {
script {
camundaGitHubWorkflowDispatch.prepareStep()
camundaGitHubWorkflowDispatch.dispatchStep('github-cambpm-ci-pipeline-app')
}
}
}
}
}
stage('Standalone QA tests') {
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pipeline {
}

// JOB_NAME, e.g.: '7.15/cambpm-ce/cambpm-main/PR-1373'
// keep leading slash for the abosolute project path
// keep leading slash for the absolute project path
platformVersionDir = "/" + env.JOB_NAME.split('/')[0]
upstreamProjectName = "/" + env.JOB_NAME
upstreamBuildNumber = env.BUILD_NUMBER
Expand Down

0 comments on commit f2be157

Please sign in to comment.