Skip to content

Commit c715db3

Browse files
authored
Merge pull request #491 from hmcts/RWA-4728-fortify
RWA-4728: fortify nightly
2 parents 46f6b80 + b11464a commit c715db3

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

Jenkinsfile_nightly

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ def product = "wa"
1212
def component = "standalone-task-bpmn"
1313

1414
withNightlyPipeline(type, product, component) {
15+
enableFortifyScan()
16+
17+
afterSuccess('fortify-scan') {
18+
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/Fortify Scan/**/*'
19+
}
1520
}

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ tasks.register('tests') {
102102
dependsOn test, integration, functional
103103
}
104104

105+
tasks.register('fortifyScan', JavaExec) {
106+
mainClass = "uk.gov.hmcts.fortifyclient.FortifyClientMainApp"
107+
classpath += sourceSets.test.runtimeClasspath
108+
jvmArgs = ['--add-opens=java.base/java.lang.reflect=ALL-UNNAMED']
109+
}
110+
105111
checkstyle {
106112
maxWarnings = 0
107113
toolVersion = '11.0.1'
@@ -298,6 +304,7 @@ dependencies {
298304

299305
testImplementation group: 'com.h2database', name: 'h2', version: '2.3.232'
300306
integrationTestImplementation "org.junit.vintage:junit-vintage-engine:${versions.junit}"
307+
testImplementation group: 'com.github.hmcts', name: 'fortify-client', version: '1.4.9', classifier: 'all'
301308

302309
integrationTestImplementation sourceSets.main.runtimeClasspath
303310
integrationTestImplementation sourceSets.test.runtimeClasspath

config/fortify-client.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fortify.client.releaseId=175277

0 commit comments

Comments
 (0)