From 2ce0409bd25000621e4d7e7a555dd11952af40a9 Mon Sep 17 00:00:00 2001 From: Connel McGovern <100574906+mcgovc@users.noreply.github.com> Date: Fri, 17 Feb 2023 14:58:14 +0000 Subject: [PATCH] INFRA-2021: Temp fix for Snyk Delta Moving the position of the Snyk Delta to execute as the first stage as there seems to be issues with running the under the hood 'snykResolvedDepsJson' task after other gradle tasks have been executed. To be investigated further but this should unblock and PR's hitting the Snyk Delta stage. --- .ci/dev/pr-code-checks/Jenkinsfile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.ci/dev/pr-code-checks/Jenkinsfile b/.ci/dev/pr-code-checks/Jenkinsfile index b88093b862..f3deaac7b2 100644 --- a/.ci/dev/pr-code-checks/Jenkinsfile +++ b/.ci/dev/pr-code-checks/Jenkinsfile @@ -20,19 +20,6 @@ pipeline { } stages { - stage('Detekt check') { - steps { - authenticateGradleWrapper() - sh "./gradlew --no-daemon clean detekt" - } - } - - stage('Compilation warnings check') { - steps { - sh "./gradlew --no-daemon -Pcompilation.warningsAsErrors=true compileAll" - } - } - stage('Snyk Delta') { agent { docker { @@ -51,6 +38,19 @@ pipeline { snykDeltaScan(env.SNYK_API_TOKEN, env.C4_OS_SNYK_ORG_ID) } } + + stage('Detekt check') { + steps { + authenticateGradleWrapper() + sh "./gradlew --no-daemon clean detekt" + } + } + + stage('Compilation warnings check') { + steps { + sh "./gradlew --no-daemon -Pcompilation.warningsAsErrors=true compileAll" + } + } stage('No API change check') { steps {