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:
Szymon Fugas
2022-02-10 18:03:08 +01:00
committed by GitHub
parent 424ec3fbc2
commit e8414c09a8
14 changed files with 41 additions and 13 deletions
+3 -1
View File
@@ -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)
}
+2 -2
View File
@@ -1,5 +1,5 @@
// +build !OpenShift
// +build !OpenShiftOAuth
//go:build !OpenShift && !OpenShiftOAuth
// +build !OpenShift,!OpenShiftOAuth
package e2e
+1
View File
@@ -1,3 +1,4 @@
//go:build OpenShift
// +build OpenShift
package e2e
+1
View File
@@ -1,3 +1,4 @@
//go:build OpenShiftOAuth
// +build OpenShiftOAuth
package e2e