aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Andrew D. France 2025-07-22 21:27:56 -0500
committerGravatar Andrew D. France 2025-07-22 21:27:56 -0500
commit5666a237ef3f4f0ce7fb5505273f76806c5c7568 (patch)
treec99b552be80a5f75311c44aaca0c348830708deb
parentThis file defines the environment for the lush application: Attempt4 (diff)
Jenkins checkout step with the SubmoduleOption enabled: Attempt5
-rw-r--r--Dockerfile1
-rw-r--r--Jenkinsfile14
2 files changed, 14 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index d281f46..6aa22ea 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,7 +19,6 @@ RUN wget https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/
# Set the working directory inside the container
WORKDIR /app
-# Copy your project's source code into the container
COPY . .
# Generate the makefiles. This will be the default action if no other command is given.
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 {