From 20244447f1d6810a84fd64948244a799d6f192a7 Mon Sep 17 00:00:00 2001 From: nilay Date: Wed, 1 Apr 2026 11:41:42 +0100 Subject: [PATCH 1/3] test fix --- Jenkinsfile_nightly | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile_nightly b/Jenkinsfile_nightly index 0f78d3cc6..eaa446eb7 100644 --- a/Jenkinsfile_nightly +++ b/Jenkinsfile_nightly @@ -1,10 +1,15 @@ #!groovy +properties([ + pipelineTriggers([cron('H 8 * * 1-5')]), +]) + @Library("Infrastructure") def type = "java" def product = "ia" def component = "task-configuration" -withPipeline(type, product, component) { +withNightlyPipeline(type, product, component) { + enableDockerTestBuild() } From 269d59e0182b9652d736c50a5584108a00d576bb Mon Sep 17 00:00:00 2001 From: nilay Date: Wed, 1 Apr 2026 12:01:21 +0100 Subject: [PATCH 2/3] fixes --- Jenkinsfile_nightly | 47 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile_nightly b/Jenkinsfile_nightly index eaa446eb7..c1d8991fb 100644 --- a/Jenkinsfile_nightly +++ b/Jenkinsfile_nightly @@ -11,5 +11,50 @@ def product = "ia" def component = "task-configuration" withNightlyPipeline(type, product, component) { - enableDockerTestBuild() + afterAlways('build') { + stage('Checkstyle and unit tests') { + try { + builder.gradle('check') + } catch (Error) { + unstable(message: "${STAGE_NAME} is unstable") + } finally { + publishHTML target: [ + allowMissing : true, + alwaysLinkToLastBuild: true, + keepAll : true, + reportDir : "build/reports/tests/test", + reportFiles : "index.html", + reportName : "Unit Test Report" + ] + } + } + stage('Integration Tests') { + try { + builder.gradle('integration') + } catch (Error) { + unstable(message: "${STAGE_NAME} is unstable") + } finally { + publishHTML target: [ + allowMissing : true, + alwaysLinkToLastBuild: true, + keepAll : true, + reportDir : "build/reports/tests/integration", + reportFiles : "index.html", + reportName : "Integration Test Report" + ] + } + } + } + + afterAlways('DependencyCheckNightly') { + publishHTML([ + allowMissing : true, + alwaysLinkToLastBuild: true, + keepAll : true, + reportDir : "build/reports", + reportFiles : 'dependency-check-report.html', + reportName : 'Dependency Check Report' + ]) + } + } From 878a2c1982aa86f7e8c0ff4e8d8c31f08893c870 Mon Sep 17 00:00:00 2001 From: nilay Date: Wed, 1 Apr 2026 12:08:05 +0100 Subject: [PATCH 3/3] fixes --- Jenkinsfile_nightly | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile_nightly b/Jenkinsfile_nightly index c1d8991fb..bab93d10d 100644 --- a/Jenkinsfile_nightly +++ b/Jenkinsfile_nightly @@ -5,11 +5,12 @@ properties([ ]) @Library("Infrastructure") - +import uk.gov.hmcts.contino.GradleBuilder def type = "java" def product = "ia" def component = "task-configuration" +GradleBuilder builder = new GradleBuilder(this, product) withNightlyPipeline(type, product, component) { afterAlways('build') { stage('Checkstyle and unit tests') {