File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ pipeline {
8
8
}
9
9
}
10
10
11
+ triggers {
12
+ // timer trigger for "nightly build" on master branch
13
+ cron( env. BRANCH_NAME . equals(' master' ) ? ' H H(0-3) * * 1-5' : ' ' )
14
+ }
15
+
11
16
stages {
12
17
stage (' Environment' ) {
13
18
steps {
@@ -38,7 +43,11 @@ pipeline {
38
43
}
39
44
stage (' Verify' ) {
40
45
when {
41
- changeRequest()
46
+ anyOf {
47
+ changeRequest()
48
+ triggeredBy ' TimerTrigger'
49
+ tag " release-*"
50
+ }
42
51
}
43
52
steps {
44
53
sh ' mvn -P system-test -Dmw_home=${ORACLE_HOME} test-compile failsafe:integration-test'
@@ -49,5 +58,19 @@ pipeline {
49
58
}
50
59
}
51
60
}
61
+ stage (' Save Nightly Installer' ){
62
+ when {
63
+ allOf {
64
+ triggeredBy ' TimerTrigger'
65
+ branch " master"
66
+ }
67
+ }
68
+ steps {
69
+ sh '''
70
+ oci os object put --namespace=weblogick8s --bucket-name=wko-system-test-files --config-file=/dev/null --auth=instance_principal --force --file=installer/target/weblogic-deploy.zip --name=weblogic-deploy-master.zip
71
+ '''
72
+ }
73
+ }
74
+
52
75
}
53
76
}
You can’t perform that action at this time.
0 commit comments