Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fortify scan implementation #409

Merged
merged 3 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Jenkinsfile_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
withNightlyPipeline(type, product, component) {
loadVaultSecrets(secrets)
enableMutationTest()
enableFortifyScan()
enableDbMigration('ccd')
kaanaktas marked this conversation as resolved.
Show resolved Hide resolved
enableSlackNotifications('#ccd-nightly-builds')
enableHighLevelDataSetup()
after('fortify-scan') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/Fortify Scan/**/*'
}
}
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ dependencies {

testCompile group: 'com.github.hmcts', name: 'ccd-test-definitions', version: '7.0.0'
testCompile group: 'com.github.hmcts', name: 'befta-fw', version: '8.2.0'
testCompile 'com.github.hmcts:fortify-client:1.2.0:all'
testCompile 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.4.0'
}
// end::dependencies[]
Expand Down Expand Up @@ -328,6 +329,13 @@ sourceSets {
}
}

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


task highLevelDataSetup(type: JavaExec) {
dependsOn aatClasses

Expand Down
2 changes: 2 additions & 0 deletions config/fortify-client.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fortify.client.releaseId=65430
kaanaktas marked this conversation as resolved.
Show resolved Hide resolved