mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-22 07:02:58 +02:00
chore: enable manual run of nightly builds with possibility of skipping tests (#712)
* Add manual dispatch trigger for nightly build workflow, with an input parameter for optionally skipping the e2e and helm tests part of the workflow * Bump how much memory to start minikube cluster with on e2e test workflows * Log events from default namespace on tests failure, bump the limit of kubernetes events logged to 30 * Bump workflow-job plugin version used by default from 2.42 to 1145.v7f2433caa07f
This commit is contained in:
+3
-1
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
var (
|
||||
podLogTailLimit int64 = 15
|
||||
kubernetesEventsLimit int64 = 15
|
||||
kubernetesEventsLimit int64 = 30
|
||||
// MUST match the labels in the deployment manifest: deploy/operator.yaml
|
||||
operatorPodLabels = map[string]string{
|
||||
"name": "jenkins-operator",
|
||||
@@ -125,9 +125,11 @@ func printKubernetesPods(namespace string) {
|
||||
|
||||
func ShowLogsIfTestHasFailed(failed bool, namespace string) {
|
||||
if failed {
|
||||
const defaultNamespace = "default"
|
||||
_, _ = fmt.Fprintf(ginkgo.GinkgoWriter, "Test failed. Bellow here you can check logs:")
|
||||
|
||||
printKubernetesEvents(namespace)
|
||||
printKubernetesEvents(defaultNamespace)
|
||||
printKubernetesPods(namespace)
|
||||
printOperatorLogs(namespace)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// +build !OpenShift
|
||||
// +build !OpenShiftOAuth
|
||||
//go:build !OpenShift && !OpenShiftOAuth
|
||||
// +build !OpenShift,!OpenShiftOAuth
|
||||
|
||||
package e2e
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build OpenShift
|
||||
// +build OpenShift
|
||||
|
||||
package e2e
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build OpenShiftOAuth
|
||||
// +build OpenShiftOAuth
|
||||
|
||||
package e2e
|
||||
|
||||
Reference in New Issue
Block a user