-
Notifications
You must be signed in to change notification settings - Fork 32
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
The Plugin Can Not Find FORTIFY_HOME & PATH #49
Comments
Same here using gradle scan type as follows:
Jenkins and plugins versions report:
The plugin cannot find "sourceanalyzer" command when compiling. |
Same issue on Jenkins 2.332.2 (the latest LTS version as of now) with Fortify plugin version v21.2.37: FORTIFY_HOME and PATH variables are ignored. The only workaround that we were able to find so far is to copy all the necessary assets to the WORKSPACE. Our setup: Jenkins runs as a pod in a Kubernetes cluster. Agents are Kubernetes pods spawned on demand. Each agent consist of two containers: jnlp container acting as the controller and a utility container (maven + Fortify installation in this case). It seems that the environment is ignored completely by the plugin (at least in the Relevant environment variables (printed out by
Having all of these set, Maven build initiated by
It works if we switch the project type to |
It seems the Here's a screenshot from a recent run: In the above screenshot, This is an important issue. Can you please raise the priority and have it fixed soon? |
Sorry, I am unable to reproduce. I've just tried with Jenkins 2.346.2, a node on Ubuntu and the latest version of our plugin 21.2.37. Path gets picked up correctly. Could you please share the details to reproduce? Here's the pipeline that I've tried:
|
Hi! Not sure if this is relevant or not, but in our case, agents are Kubernetes pods spawned on demand by the Kubernetes plugin. We can still see that the environment variables we set are propagated properly to the agent container, no matter how we set them: using Jenkins global configuration, |
Thank you @UncleIS! That was helpful. It turned out that we didn't take env overrides into account for our pipelines. I was able to figure the solution out and it's going to be part of the upcoming release that we're currently working on. Hang on there. |
Thank you very much @akaryakina! Do you know approximately when the next release will be? |
Unfortunately, we have a policy and cannot provide a firm date for any upcoming releases. That being said, we are actively working on this update for the Jenkins Plugin and we will release it as soon as it’s ready. We're already starting the QA cycle next week. Our current estimate is end of August, but this is subject to change at any time. |
Version report
Jenkins and plugins versions report:
The places where we set the PATH variable are as follows.
Also we tried to set FORTIFY_HOME from global properties. The plugin didn't find "sourceanalyzer" command.
Whenever we set the PATH variable from "global property" to "fortify/bin", then it can find "sourceanalyzer". When we make this setting, our other jobs in Jenkins do not work.
The text was updated successfully, but these errors were encountered: