New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Absent Member.
Absent Member.

Gradle integration is not works (Android + Gradle + Jenkins)

I'm trying to build android application on jenkins CI server with Fortify.

But it's not run as expected.

I configured jenkins project like below.

Add Build Step -> Execute shell

sourceanalyzer -b testbuild gradle assemble

But jenkins console output is-

HPE Security Fortify Static Code Analyzer 16.20.0157 (using JVM 1.8.0_102)

[warning]: File assemble not found

otherwise, I execute as same command on shell, it runs gradle daemon successfully.

How can I build android gradle with jenkins?

Labels (1)
Tags (3)
1 Reply
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

I have a similar question; I'm trying to scan OWASP GoatDroid as a test on windows; it's available here:

I run the following:

sourceanalyzer.exe -b testxyz -clean

& then the translate command:
sourceanalyzer.exe -b testxyz2 -verbose -logfile fortfiy.translate.logger -jdk 1.8 -cp C:\Users\AppData\Local\Android\sdk\*\*\*.jar gradlew.bat clean assemble

This appear to build fine(although there is an error after build successful):


Total time: 19.15 secs

[error]: An error was encountered while writing to file build.gradle

I then run the scan command:

sourceanalyzer.exe -b testxyz2 -verbose -logfile fortify.scan.logger -scan -f results.fpr

But get the error below:

HPE Security Fortify Static Code Analyzer 16.20.0157 (using JVM 1.8.0_102)

[error]: Unable to load build session with ID "testxyz2". See log file for more details.

Any ideas what I'm doing wrong?



The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.