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

[BUG] scan command not working when used in jenkins script #1455

Open
Yogesh-Tiwari opened this issue May 3, 2024 · 3 comments
Open

[BUG] scan command not working when used in jenkins script #1455

Yogesh-Tiwari opened this issue May 3, 2024 · 3 comments

Comments

@Yogesh-Tiwari
Copy link

Yogesh-Tiwari commented May 3, 2024

Description:

  • When running the command sf scanner run -t "./**/*.cls" for the jenkins job's workspace folder for a PR raised gives error:
    "The specified target wasn't processed by any engines. Use the --engine parameter to select a different engine or specify a different target. Specified target: ./**/*.cls" and no files are scanned even if the .cls files are present in the job's workspace.
  • The same command when run in the actual sfdx project folder it works fine and the classes scan result is shown in console.

Details:

  • Operating System. Example: Windows 11
  • sf scanner plugin version: 3.24.0
  • Salesforce CLI version: @salesforce/cli/2.38.7
@stephen-carter-at-sf
Copy link
Collaborator

Did you instead mean to do
sf scanner run -t "./**/*.cls"
?

@Yogesh-Tiwari
Copy link
Author

Hi @stephen-carter-at-sf yes I am trying to run the same command.

@stephen-carter-at-sf
Copy link
Collaborator

stephen-carter-at-sf commented May 23, 2024

@Yogesh-Tiwari
Oh I see the markdown in github is removing what you typed visually. Are you calling this from a jenkinsFile or something? If so, can you show me the code where you actually make this call.

Also, can you confirm that the environment that you are running this from in jenkins has your files actually checked out. Doing an ls or something first may help you confirm it in the logs.

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

No branches or pull requests

2 participants