diff options
| author | 2025-07-22 22:27:36 -0500 | |
|---|---|---|
| committer | 2025-07-22 22:27:36 -0500 | |
| commit | ad56a06a04366930599a39273e0d6b4e681f9e06 (patch) | |
| tree | aac5cfd4ca4ecc868e3024652f83076b0dc70323 /Jenkinsfile | |
| parent | Jenkins checkout step with the SubmoduleOption enabled: Attempt5 (diff) | |
Add a simple shell command to manually initialize the submodules: attempt6
Diffstat (limited to 'Jenkinsfile')
| -rw-r--r-- | Jenkinsfile | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 27c5869..364cff3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,25 +2,15 @@ pipeline { agent any
stages {
- stage('Checkout Code') {
- steps {
- echo 'Checking out code from Git and initializing submodules...'
- checkout([
- $class: 'GitSCM',
- branches: scm.branches,
- userRemoteConfigs: scm.userRemoteConfigs,
- extensions: [
- [$class: 'SubmoduleOption', disableSubmodules: false, recursiveSubmodules: true, trackingSubmodules: true]
- ]
- ])
- }
- }
-
stage('Build Application Image') {
steps {
script {
+ echo 'Initializing Git submodules...'
+ // Manually initialize and update the git submodules
+ sh 'git submodule update --init --recursive'
+
echo 'Building the Lush application Docker image...'
- // Build the image from the new Dockerfile and tag it
+ // Build the image from the Dockerfile and tag it
sh 'docker build -t lush-app:latest .'
}
}
|
