Compare commits
3 Commits
rapp/pick-
...
master
Author | SHA1 | Date |
---|---|---|
|
3be5f08ffd | |
|
4b39cd884b | |
|
eb7b1cf7dd |
|
@ -1,25 +1,12 @@
|
||||||
|
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout Code & Submodules') {
|
stage('Trigger Submodule Pipelines') {
|
||||||
steps {
|
steps {
|
||||||
git branch: 'main', url: 'git@github.com:your-org/my-main-repo.git', credentialsId: 'git-credentials'
|
script {
|
||||||
sh 'git submodule update --init --recursive'
|
build job: 'frontend-pipeline', wait: false
|
||||||
}
|
build job: 'backend-pipeline', wait: false
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Run Backend Pipeline') {
|
|
||||||
steps {
|
|
||||||
build job: 'backend-pipeline', wait: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Run Frontend Pipeline') {
|
|
||||||
steps {
|
|
||||||
build job: 'frontend-pipeline', wait: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue