Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix in pipeline syntax

...

Code Block
	sonarToGerrit (
		inspectionConfig: [
			serverURL: 'http://localhost:9000',
		    baseConfig: [
				projectPath: '',
				sonarReportPath: 'target/sonar/sonar-report.json',
				allowAutoMatch: true
			]
			// OR
			//subJobConfigs : [
			//	[
			//		projectPath: 'module0',
			//		sonarReportPath: 'target/sonar/sonar-report.json'
			//	],
			//	[
			//		projectPath: 'module1',
			//		sonarReportPath: 'target/module1/sonar/sonar-report.json'
			//	]
			//]
		],
        reviewConfig: [ 
            issueFilterConfig: [
                severity: 'INFO', 
                newIssuesOnly: false, 
                changedLinesOnly: false
                ], 
            noIssuesTitleTemplate: 'SonarQube violations have not been found.', 
            someIssuesTitleTemplate: '<total_count> SonarQube violations have been found.',
            issueCommentTemplate: '<severity> SonarQube violation:\n\n\n<message>\n\n\nRead more: <rule_url>'
        ],
        scoreConfig: [ 
            issueFilterConfig: [
                severity: 'INFO', 
                newIssuesOnly: false, 
                changedLinesOnly: false
                ], 
            category: 'Code-Review', 
            noIssuesScore: 0,
            issuesScore: -1
        ],
		notificationConfig: [
			noIssuesNotificationRecipient: 'NONE',
			commentedIssuesNotificationRecipient: 'OWNER',
			negativeScoreNotificationRecipient: 'OWNER'
		],
		authConfig: [
			username: 'Jenkins',
			password: 'HTTP Password of user called Jenkins'
		]
    )

...