From a819973a8a584effffd8fdaf84d56b004d374d22 Mon Sep 17 00:00:00 2001 From: Zheyuan Wu <60459821+Trance-0@users.noreply.github.com> Date: Tue, 24 Jun 2025 18:43:56 -0500 Subject: [PATCH] Update Jenkinsfile add git checkout stage --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index b583226..3c90e3c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,17 @@ pipeline { agent any stages { + stage('Checkout') { + steps { + checkout([ + $class: 'GitSCM', + branches: [[ name: '*/main' ]], + userRemoteConfigs: [[ + url: 'https://github.com/Trance-0/NoteNextra', + ]] + ]) + } + } stage('Test') { steps { nodejs(nodeJSInstallationName: 'NodeJS') {