Skip to content

Commit

Permalink
Add fortify implementation (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayrajagopalan-hmcts authored Sep 23, 2021
1 parent 5f536da commit 4cab2f8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ withNightlyPipeline(type, product, component) {
enableMutationTest()
enableFullFunctionalTest()
enableSecurityScan()
enableFortifyScan()

after('fullFunctionalTest') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
}

after('fortify-scan') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/Fortify Scan/**/*'
}
}
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ task migratePostgresDatabase(type: org.flywaydb.gradle.task.FlywayMigrateTask) {
}
}

task fortifyScan(type: JavaExec) {
main = "uk.gov.hmcts.fortifyclient.FortifyClientMainApp"
classpath += sourceSets.test.runtimeClasspath
jvmArgs = ['--add-opens=java.base/java.lang.reflect=ALL-UNNAMED']
}

jacoco {
toolVersion = "0.8.5"
}
Expand Down Expand Up @@ -341,6 +347,7 @@ dependencies {
testCompile (group: 'net.serenity-bdd', name: 'serenity-junit', version: versions.serenity)
testCompile (group: 'net.serenity-bdd', name: 'serenity-rest-assured', version: versions.serenity)
testCompile (group: 'net.serenity-bdd', name: 'serenity-spring', version: versions.serenity)
testCompile 'com.github.hmcts:fortify-client:1.2.0:all'

testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: versions.springBoot

Expand Down
1 change: 1 addition & 0 deletions config/fortify-client.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fortify.client.releaseId=57836

0 comments on commit 4cab2f8

Please sign in to comment.