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

octane fixes for 5.5.4-beta #194

Merged
merged 13 commits into from Nov 20, 2018
Merged

Conversation

radislavB
Copy link

@radislavB radislavB commented Nov 15, 2018

@@ -546,7 +554,7 @@ public static FreeStyleProject createExecutor(DiscoveryInfo discoveryInfo) {
* @param uftExecutorJobNameWithTestRunner
* @return
*/
public static FreeStyleProject createExecutorByJobName(String uftExecutorJobNameWithTestRunner) {
public static FreeStyleProject createExecutorByJobName(String uftExecutorJobNameWithTestRunner) throws IOException {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor this method to reduce its Cognitive Complexity from 25 to the 15 allowed.

}
if (parameterDefinition != null && testRunnerLogicalName.equals(parameterDefinition.getDefaultParameterValue().getValue().toString())) {
foundDiscoveryJob = job;

if(replaceParams){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid deeply nested control flow statements.

@@ -323,7 +323,7 @@ private static FreeStyleProject getDiscoveryJobForUftExecutor(DiscoveryInfo disc
}
}

private static FreeStyleProject getDiscoveryJobForTestRunner(DiscoveryInfo discoveryInfo) {
private static FreeStyleProject getDiscoveryJobForUftTestRunner(DiscoveryInfo discoveryInfo) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method getDiscoveryJobForUftTestRunner has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

@AppVeyorBot
Copy link

elokshin and others added 2 commits November 15, 2018 11:56
Defect #733048 Adding new Octane Server configuration in jenkins with…
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@codeclimate
Copy link

codeclimate bot commented Nov 19, 2018

Code Climate has analyzed commit 40d471f and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3

Note: there is 1 critical issue.

View more on Code Climate.

@AppVeyorBot
Copy link

@grount grount added this to the 5.5.4-beta milestone Nov 20, 2018
@grount grount merged commit 51bbd77 into jenkinsci:latest Nov 20, 2018
grount pushed a commit that referenced this pull request Apr 15, 2019
defect #616017: [Jenkins] can "run successfully" disabled job from Octane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants