File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929# RE-USABLE CONFIGS
3030#
3131container_definition : &CONTAINER_DEFINITION
32- image : ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j17 -latest
32+ image : ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j18 -latest
3333 cluster_name : ${CIRRUS_CLUSTER_NAME}
3434 region : eu-central-1
3535 namespace : default
3636
3737only_sonarsource_qa : &ONLY_SONARSOURCE_QA
38- only_if : $CIRRUS_USER_COLLABORATOR == 'true' && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == "master" )
38+ only_if : $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BUILD_SOURCE == 'api' )
3939
4040#
4141# TASKS
4242#
4343build_task :
44+ << : *ONLY_SONARSOURCE_QA
4445 eks_container :
4546 << : *CONTAINER_DEFINITION
4647 cpu : 2
@@ -58,6 +59,30 @@ build_task:
5859 cleanup_before_cache_script :
5960 - cleanup_maven_repository
6061
62+ mend_scan_task :
63+ depends_on :
64+ - build
65+ eks_container :
66+ << : *CONTAINER_DEFINITION
67+ cpu : 2
68+ memory : 2G
69+ # run only on master and long-term branches
70+ only_if : $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && ($CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH || $CIRRUS_BRANCH =~ "branch-.*")
71+ env :
72+ WS_APIKEY : VAULT[development/kv/data/mend data.apikey]
73+ maven_cache :
74+ folder : ${CIRRUS_WORKING_DIR}/.m2/repository
75+ whitesource_script :
76+ - source cirrus-env QA
77+ - source set_maven_build_version $BUILD_NUMBER
78+ - mvn clean install -DskipTests --batch-mode
79+ - source ws_scan.sh
80+ cleanup_before_cache_script : cleanup_maven_repository
81+ allow_failures : " true"
82+ always :
83+ ws_artifacts :
84+ path : " whitesource/**/*"
85+
6186qa_task :
6287 depends_on :
6388 - build
Original file line number Diff line number Diff line change 1+ # Mend documentation https://docs.mend.io/bundle/unified_agent/page/unified_agent_configuration_parameters.html
2+
3+ excludes=**/*sources.jar **/*javadoc.jar its/**
4+ fileSystemScan=False
5+ resolveAllDependencies=False
6+
7+ maven.aggregateModules=True
8+ maven.downloadMissingDependencies=False
9+ maven.m2RepositoryPath=.m2/repository
10+ maven.resolveDependencies=True
11+ maven.runPreStep=False
12+ maven.ignoredScopes=provided,test,system
13+
14+ wss.url=https://saas-eu.whitesourcesoftware.com/agent
15+
16+ forceUpdate=true
17+ checkPolicies=true
18+ forceUpdate.failBuildOnPolicyViolation=true
19+ productName=Scanner/JavaLibrary
You can’t perform that action at this time.
0 commit comments