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

generateScanReport doesn't work with UA Version 21.12.1 #24

Closed
joaquin386 opened this issue Dec 27, 2021 · 8 comments
Closed

generateScanReport doesn't work with UA Version 21.12.1 #24

joaquin386 opened this issue Dec 27, 2021 · 8 comments

Comments

@joaquin386
Copy link

joaquin386 commented Dec 27, 2021

Hi

We have the parameter generateScanReport=true and scanReportFilenameFormat=static for UA 21.12.1 and the scan_report.json is not written to whitesource/scan_report.json. We even have this from the logs:

scan report created successfully at /vsts/agent/_work/24/s/./whitesource/scan_report.json

But when checking there is NO folder or NO file with the scan_report.json name.

We had before the upgrade the UA 21.11.2 and the report was generated correctly, we have to disable now the WS scanning because the automation was base on that file.

This started happening the moment UA was upgraded o 21.12.1 (was working on 21.11.2)

BR

Joaquin

@LenaKleyner
Copy link

Hi @joaquin386 , we will need more information to evaluate your issue.
Could you please open a support ticket with all the relevant information (the Unified Agent execution command, its settings, and the output log)?

Thanks!

Lena

@joaquin386
Copy link
Author

joaquin386 commented Dec 30, 2021

You have the case open now at your end. Logs provided where all the above is shown. Still the logs show this:

scan report created successfully at /vsts/agent/_work/24/s/./whitesource/scan_report.json

Seems as the logs is writing the file but then doing a ls -al of /vsts/agent/_work/24/s/ doesnt show the whitesource directory or the file that has to be created inside it and as I just mention this started on the 26th December when the UA 21.12.1 was release

@kostukp96
Copy link

in 21.12.2 doesnt work to...

@kostukp96
Copy link

@joaquin386 did you manage to solve this problem?

@joaquin386
Copy link
Author

Yes this parameter suddenly was needed after the upgrade.
log.files.level

So now it is working and yes the case can be closed. I can do it if you want.

@kostukp96
Copy link

@joaquin386 Can you tell me where I need to set this parameter?

@joaquin386
Copy link
Author

joaquin386 commented Jan 19, 2022

@kostukp96 You have the documentation here: https://whitesource.atlassian.net/wiki/spaces/WD/pages/1544880156/Unified+Agent+Configuration+Parameters

So either you pass it as an environment variable WS_log.files.level=INFO or you pass it together with your Whitesource execution command /usr/bin/java -jar /vsts/agent/_work/whitesource_agent/wss-unified-agent.jar ..... -log.files.level Info

So you have two options ... whichever fits you best.

Closing Issue as problem is solved now.

@djwgit
Copy link

djwgit commented Jul 29, 2022

@joaquin386
with UA version 22.6.2
I tried your solution setting -log.files.level Info, log file size changed, since default is Debug.
but still no report json generated... wonder if it still works for you with this latest UA version... thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants