Skip to content

Commit 9a7e3f3

Browse files
authored
created nightly build with published installer (#686)
1 parent 9812d22 commit 9a7e3f3

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

Jenkinsfile

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ pipeline {
88
}
99
}
1010

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+
1116
stages {
1217
stage ('Environment') {
1318
steps {
@@ -38,7 +43,11 @@ pipeline {
3843
}
3944
stage ('Verify') {
4045
when {
41-
changeRequest()
46+
anyOf {
47+
changeRequest()
48+
triggeredBy 'TimerTrigger'
49+
tag "release-*"
50+
}
4251
}
4352
steps {
4453
sh 'mvn -P system-test -Dmw_home=${ORACLE_HOME} test-compile failsafe:integration-test'
@@ -49,5 +58,19 @@ pipeline {
4958
}
5059
}
5160
}
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+
5275
}
5376
}

0 commit comments

Comments
 (0)