Remove unnecessary options configuration from Jenkins pipeline for cleaner setup
This commit is contained in:
parent
762384d45e
commit
6e19591998
|
|
@ -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') {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue