Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Highlighted
hyosang82 Absent Member.
Absent Member.
2200 views

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 (3)
Tags (3)
0 Likes
1 Reply
vtimoney1
Visitor.

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

I have a similar question; I'm trying to scan OWASP GoatDroid as a test on windows; it's available here:
https://github.com/jackMannino/OWASP-GoatDroid-Project

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):

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?

Thanks,

VT

0 Likes
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.