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

Adding pretend success option #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Adding pretend success option

d928065
Select commit
Loading
Failed to load commit list.
Open

Adding pretend success option #132

Adding pretend success option
d928065
Select commit
Loading
Failed to load commit list.
ci.jenkins.io / SpotBugs failed Jul 31, 2024 in 0s

37 new issues

Total New Outstanding Fixed Trend
37 37 0 0 👎

Reference build: Plugins » jenkins-multijob-plugin » master #1

Details

Severity distribution of new issues

Error Warning High Warning Normal Warning Low
0 1 36 0

Annotations

Check warning on line 39 in src/main/java/com/tikal/jenkins/plugins/multijob/FileBuildParameters.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.FileBuildParameters.getAction(AbstractBuild, TaskListener, AbstractProject) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 53 in src/main/java/com/tikal/jenkins/plugins/multijob/FileBuildParameters.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

OS_OPEN_STREAM

NORMAL:
com.tikal.jenkins.plugins.multijob.FileBuildParameters.getAction(AbstractBuild, TaskListener, AbstractProject) may fail to close stream
Raw output
<p> The method creates an IO stream object, does not assign it to any fields, pass it to other methods that might close it, or return it, and does not appear to close the stream on all paths out of the method.&nbsp; This may result in a file descriptor leak.&nbsp; It is generally a good idea to use a <code>finally</code> block to ensure that streams are closed.</p>

Check warning on line 87 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuild.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobBuild.getBuildParams(MultiJobBuild$SubBuild) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 45 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuildSelector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobBuildSelector.getBuild(Job, EnvVars, BuildFilter, Run) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 46 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuildSelector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobBuildSelector.getBuild(Job, EnvVars, BuildFilter, Run) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 854 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobBuilder.addBuildEnvironmentVariables(MultiJobBuild, AbstractBuild, BuildListener) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 190 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobBuilder.getScmChange(AbstractProject, PhaseJobsConfig, AbstractBuild, BuildListener, Launcher) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 193 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobBuilder.getScmChange(AbstractProject, PhaseJobsConfig, AbstractBuild, BuildListener, Launcher) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 241 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(AbstractBuild, Launcher, BuildListener) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 362 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(AbstractBuild, Launcher, BuildListener) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 1208 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobBuilder.prebuild(Build, BuildListener) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 1214 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobBuilder.prebuild(Build, BuildListener) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 784 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_PARAM_DEREF_NONVIRTUAL

HIGH:
Non-virtual method call in com.tikal.jenkins.plugins.multijob.MultiJobBuilder.updateSubBuild(MultiJobBuild, MultiJobProject, PhaseJobsConfig) passes null for non-null parameter of new MultiJobBuild$SubBuild(String, int, String, int, String, Result, String, String, String, AbstractBuild)
Raw output
<p> A possibly-null value is passed to a non-null method parameter. Either the parameter is annotated as a parameter that should always be non-null, or analysis has shown that it will always be dereferenced. </p>

Check warning on line 760 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

VA_FORMAT_STRING_USES_NEWLINE

NORMAL:
Format string should use %n rather than \n in com.tikal.jenkins.plugins.multijob.MultiJobBuilder.reportStart(BuildListener, AbstractProject)
Raw output
<p> This format string includes a newline character (\n). In format strings, it is generally preferable to use %n, which will produce the platform-specific line separator. </p>

Check warning on line 290 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

WMI_WRONG_MAP_ITERATOR

NORMAL:
com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(AbstractBuild, Launcher, BuildListener) makes inefficient use of keySet iterator instead of entrySet iterator
Raw output
<p> This method accesses the value of a Map entry, using a key that was retrieved from a keySet iterator. It is more efficient to use an iterator on the entrySet of the map, to avoid the Map.get(key) lookup.</p>

Check warning on line 1228 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

WMI_WRONG_MAP_ITERATOR

NORMAL:
com.tikal.jenkins.plugins.multijob.MultiJobBuilder.prebuild(Build, BuildListener) makes inefficient use of keySet iterator instead of entrySet iterator
Raw output
<p> This method accesses the value of a Map entry, using a key that was retrieved from a keySet iterator. It is more efficient to use an iterator on the entrySet of the map, to avoid the Map.get(key) lookup.</p>

Check warning on line 547 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobBuilder$SubJobWorker.call() due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 104 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobProject.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

DLS_DEAD_LOCAL_STORE

NORMAL:
Dead store to tmpResult in com.tikal.jenkins.plugins.multijob.MultiJobProject.poll(TaskListener)
Raw output
<p> This instruction assigns a value to a local variable, but the value is not read or used in any subsequent instruction. Often, this indicates an error, because the value computed is never used. </p> <p> Note that Sun's javac compiler often generates dead stores for final local variables. Because SpotBugs is a bytecode-based tool, there is no easy way to eliminate these false positives. </p>

Check warning on line 88 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobProject.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobProject.getRootUrl() due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 43 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobResumeBuild.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobResumeBuild.doIndex(StaplerRequest, StaplerResponse) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 44 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobResumeBuild.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobResumeBuild.doIndex(StaplerRequest, StaplerResponse) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 23 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobResumeBuild.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobResumeBuild.getIconFileName() due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 21 in src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobTestResults.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.MultiJobTestResults.resolveChild(AggregatedTestResultAction$Child) due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 195 in src/main/java/com/tikal/jenkins/plugins/multijob/PhaseJobsConfig.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

NORMAL:
Possible null pointer dereference in com.tikal.jenkins.plugins.multijob.PhaseJobsConfig.getDescriptor() due to return value of called method
Raw output
<p> The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a <code>NullPointerException</code> when the code is executed. </p>

Check warning on line 386 in src/main/java/com/tikal/jenkins/plugins/multijob/PhaseJobsConfig.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE

NORMAL:
Nullcheck of action at line 386 of value previously dereferenced in com.tikal.jenkins.plugins.multijob.PhaseJobsConfig.getJobParameters(AbstractBuild, TaskListener)
Raw output
<p> A value is checked here to see whether it is null, but this value can't be null because it was previously dereferenced and if it were null a null pointer exception would have occurred at the earlier dereference. Essentially, this code and the previous dereference disagree as to whether this value is allowed to be null. Either the check is redundant or the previous dereference is erroneous.</p>