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

[semver:minor] SDIT-1788: ✨ Allow jdk_tag to be passed through for veracode jobs #184

Merged
merged 1 commit into from
May 31, 2024
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
3 changes: 3 additions & 0 deletions release-notes/9.x.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 9.1.0

Allow `jdk_tag` to be passed through to veracode jobs, rather than hardcoding java 17.

# 9.0.0

Expand Down
9 changes: 8 additions & 1 deletion src/jobs/veracode_pipeline_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ description: >
Veracode SAST pipeline scan
executor:
name: java
tag: "17.0"
tag: <<parameters.jdk_tag>>
java_options: <<parameters.java_options>>
parameters:
slack_channel:
type: string
Expand All @@ -13,6 +14,12 @@ parameters:
description: Directory inside the docker image where the application artifacts are saved
type: string
default: "/app"
jdk_tag:
default: "17.0"
type: string
java_options:
default: -Xmx1024m -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -Djava.util.concurrent.ForkJoinPool.common.parallelism=2 -Dorg.gradle.daemon=false -Dkotlin.compiler.execution.strategy=in-process
type: string
steps:
- veracode_prepare_artifacts:
docker_image_app_dir: << parameters.docker_image_app_dir >>
Expand Down
9 changes: 8 additions & 1 deletion src/jobs/veracode_policy_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ description: >
Veracode SAST policy scan
executor:
name: java
tag: "17.0"
tag: <<parameters.jdk_tag>>
java_options: <<parameters.java_options>>
parameters:
slack_channel:
type: string
Expand All @@ -19,6 +20,12 @@ parameters:
description: Directory inside the docker image where the application artifacts are saved
type: string
default: "/app"
jdk_tag:
default: "17.0"
type: string
java_options:
default: -Xmx1024m -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -Djava.util.concurrent.ForkJoinPool.common.parallelism=2 -Dorg.gradle.daemon=false -Dkotlin.compiler.execution.strategy=in-process
type: string
steps:
- veracode_prepare_artifacts:
docker_image_app_dir: << parameters.docker_image_app_dir >>
Expand Down