From ad56a06a04366930599a39273e0d6b4e681f9e06 Mon Sep 17 00:00:00 2001 From: Andrew D. France Date: Tue, 22 Jul 2025 22:27:36 -0500 Subject: Add a simple shell command to manually initialize the submodules: attempt6 --- Jenkinsfile | 20 +++++--------------- 1 file 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 .' } } -- cgit v1.2.3-59-g8ed1b