From 5666a237ef3f4f0ce7fb5505273f76806c5c7568 Mon Sep 17 00:00:00 2001 From: Andrew D. France Date: Tue, 22 Jul 2025 21:27:56 -0500 Subject: Jenkins checkout step with the SubmoduleOption enabled: Attempt5 --- Jenkinsfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile index f7f66c7..27c5869 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,6 +2,20 @@ 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 { -- cgit v1.2.3-59-g8ed1b