ks-devops
ks-devops copied to clipboard
Support to disable build status notifications from Jenkins
https://github.com/kubesphere/ks-devops/pull/797 support to send a build status notification from ks-devops. But Jenkins will send it too. See the following screenshot

Firstly, it's totally not necessary to have both Jenkins and ks-devops build status links. We prefer to have ks-devops link only. So, we need to figure out a solution to disable the Jenkins build status link.
Solution A
Jenkins plugin Skip notifications trait could do that. We could add it to ks-jenkins.
Then, make githubSkipNotifications as the default trait. See also https://github.com/kubesphere/ks-devops/blob/f69d2264e742b7b55ae502443396c1281cbf0c81/pkg/client/devops/jenkins/internal/github.go#L43
/good-first-issue
@LinuxSuRen: This request has been marked as suitable for new contributors.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.
In response to this:
https://github.com/kubesphere/ks-devops/pull/797 support to send a build status notification from ks-devops. But Jenkins will send it too. See the following screenshot
Firstly, it's totally not necessary to have both Jenkins and ks-devops build status links. We prefer to have ks-devops link only. So, we need to figure out a solution to disable the Jenkins build status link.
Solution A
Jenkins plugin Skip notifications trait could do that. We could add it to ks-jenkins.
/good-first-issue
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/assign
@LinuxSuRen How do I simulate this notification?Can I get this jenkinsfile
You could get the notification once you created a multi-branch Pipeline.