Visitor.
177 views

Azure DevOps Install SCA Task Fails

I'm trying to get the Fortify SCA installed on my private hosted build agent using the "Install Fortify SCA Agent" task, and it seems to be failing with a missing file... partial error message copied below. Is this an issue with the task, or do I need to do some pre-work on my build agent before it can run?

2020-03-23T19:18:52.5604035Z ##[section]Starting: Install Fortify SCA Agent
2020-03-23T19:18:52.5790167Z ==============================================================================
2020-03-23T19:18:52.5791466Z Task         : Fortify Static Code Analyzer Install
2020-03-23T19:18:52.5791786Z Description  : Install Fortify SCA on an agent
2020-03-23T19:18:52.5792018Z Version      : 5.7.1
2020-03-23T19:18:52.5792247Z Author       : Micro Focus
2020-03-23T19:18:52.5792459Z Help         : 
2020-03-23T19:18:52.5792720Z ==============================================================================
2020-03-23T19:18:52.8933607Z Executing C:\vsts-agent\_work\_tasks\InstallFortifySCA_818386e5-c8a5-46c3-822d-954b3c8fb131\5.7.1\HPE_Fortify\HPE_Fortify_SCA_and_Apps\bin\sourceanalyzer --version do determine if SCA is already installed
2020-03-23T19:18:52.9057113Z { Error: spawnSync C:\vsts-agent\_work\_tasks\InstallFortifySCA_818386e5-c8a5-46c3-822d-954b3c8fb131\5.7.1\HPE_Fortify\HPE_Fortify_SCA_and_Apps\bin\sourceanalyzer ENOENT
2020-03-23T19:18:52.9058066Z     at exports._errnoException (util.js:1020:11)
2020-03-23T19:18:52.9058443Z     at spawnSync (child_process.js:451:20)
2020-03-23T19:18:52.9058823Z     at Object.execFileSync (child_process.js:488:13)
2020-03-23T19:18:52.9059370Z     at Object.<anonymous> (C:\vsts-agent\_work\_tasks\InstallFortifySCA_818386e5-c8a5-46c3-822d-954b3c8fb131\5.7.1\InstallSCA.js:25:28)
2020-03-23T19:18:52.9060125Z     at Module._compile (module.js:577:32)
2020-03-23T19:18:52.9060524Z     at Object.Module._extensions..js (module.js:586:10)
2020-03-23T19:18:52.9060914Z     at Module.load (module.js:494:32)
2020-03-23T19:18:52.9061249Z     at tryModuleLoad (module.js:453:12)
2020-03-23T19:18:52.9061621Z     at Function.Module._load (module.js:445:3)
2020-03-23T19:18:52.9061976Z     at Module.runMain (module.js:611:10)
0 Likes
3 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Azure DevOps Install SCA Task Fails

Make sure the user running the agent has SCA in the environment PATH.
0 Likes
Highlighted
Visitor.

Re: Azure DevOps Install SCA Task Fails

The agent doesn't have SCA installed (hence why I'm running the task)... 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Azure DevOps Install SCA Task Fails

Doh! My recommendation would be to open a ticket with Fortify Technical Support for further analysis of this issue.

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.