Remove unnecessary options configuration from Jenkins pipeline for cleaner setup

This commit is contained in:
Enno Gelhaus 2025-10-03 14:35:15 +02:00
parent 762384d45e
commit 6e19591998
2 changed files with 0 additions and 11 deletions

View File

@ -3,12 +3,6 @@ pipeline {
// Defines the execution environment. Replace 'linux-agent' with your specific agent label.
agent any
// Configure options, primarily to ensure full Git history is fetched for SonarQube and versioning.
options {
// Skip the default checkout to manage it explicitly and ensure fetch-depth: 0.
skipDefaultCheckout()
}
stages {
// Stage 1: Checkout the code with full history (fetch-depth: 0)
stage('Source Checkout') {

View File

@ -2,11 +2,6 @@
pipeline {
// Defines the execution environment. Replace 'linux-agent' with your specific agent label.
agent any
// Configure options, primarily to ensure full Git history is fetched for SonarQube and versioning.
options {
// Skip the default checkout to manage it explicitly and ensure fetch-depth: 0.
skipDefaultCheckout()
}
// Environment variables that hold PR details (set automatically by Jenkins SCM plugins like Git/GitHub Branch Source)
environment {