Skip to content

Commit d65ee6a

Browse files
Scan jar produced from build
1 parent fe7584f commit d65ee6a

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

whitesource.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
enableImpactAnalysis=True
2+
resolveAllDependencies=False
3+
fileSystemScan=False
4+
maven.resolveDependencies=True
5+
maven.aggregateModules=True
6+
maven.downloadMissingDependencies=False
7+
maven.m2RepositoryPath=/tmp/cirrus-ci-build/.m2/repository

ws_scan.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ scan() {
3535
export WS_PRODUCTNAME=$(maven_expression "project.name")
3636
export WS_PROJECTNAME="${WS_PRODUCTNAME} ${PROJECT_VERSION%.*}"
3737
echo "${WS_PRODUCTNAME} - ${WS_PROJECTNAME}"
38-
java -jar wss-unified-agent.jar
38+
local jar_path="${CIRRUS_WORKING_DIR}/sonar-java-plugin/target/sonar-java-plugin-7.1.0-SNAPSHOT.jar"
39+
echo "${CIRRUS_WORKING_DIR}"
40+
ls
41+
echo "${jar_path}"
42+
mvn clean install
43+
java -jar wss-unified-agent.jar -c whitesource.properties -appPath "${jar_path}" -d "${CIRRUS_WORKING_DIR}"
3944
}
4045

4146
get_ws_agent

0 commit comments

Comments
 (0)