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

[CLOUDTRUST-2411] Add jenkinsfile, add sonarqube support #44

Merged
merged 2 commits into from
Mar 12, 2020
Merged

Conversation

vloup
Copy link
Contributor

@vloup vloup commented Mar 11, 2020

No description provided.

@coveralls
Copy link

coveralls commented Mar 11, 2020

Coverage Status

Coverage remained the same at 89.084% when pulling d44161e on jenkins into 5fe4569 on master.

@@ -98,7 +98,7 @@ func TestValidateParameterNotNil(t *testing.T) {
t.Run("Not nil value", func(t *testing.T) {
assert.Nil(t, NewParameterValidator().ValidateParameterNotNil("param", t).Status())
})
t.Run("Nil interface{}", func(t *testing.T) {
t.Run("Nil interface", func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

No... it is really interface{}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed, this is a limitation of the sonar-scanner-cli tool. Without this fix I have:

11:04:35  ERROR: Error during SonarQube Scanner execution
11:04:35  java.util.regex.PatternSyntaxException: Illegal repetition near index 48
11:04:35  ^func\s+TestValidateParameterNotNil/Nil_interface{}\s*\(

As we both agreed, I've removed the incriminating '{}', and I've added a comment to explain my issue.

@vloup vloup force-pushed the jenkins branch 3 times, most recently from 7065383 to 13559f0 Compare March 12, 2020 08:41
@vloup vloup changed the title Add jenkinsfile. [CLOUDTRUST-2411] Add jenkinsfile, add sonarqube support Mar 12, 2020
@vloup vloup merged commit 472d9ee into master Mar 12, 2020
@vloup vloup deleted the jenkins branch March 16, 2020 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants