[None][infra] Fix sonarQube job hang by create jenkins homd folder if not exist (#10830)

Signed-off-by: Yuanjing Xue <197832395+yuanjingx87@users.noreply.github.com>
This commit is contained in:
yuanjingx87 2026-01-21 11:45:19 -08:00 committed by GitHub
parent 8cf8fbbe16
commit 5450485bec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,6 +113,7 @@ def generate()
def sonar_scan()
{
container("alpine") {
sh "mkdir -p $JENKINS_HOME"
def scannerHome = tool 'sonarScanner'
sh "apt update"
sh "apt install -y git git-lfs openjdk-17-jdk"
@ -135,8 +136,8 @@ pipeline {
}
options {
skipDefaultCheckout()
// to better analyze the time for each step/test
timestamps()
timeout(time: 60, unit: 'MINUTES')
}
triggers {