Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
602af462
Unverified
Commit
602af462
authored
Dec 23, 2016
by
Thomas Müller
Browse files
Run integration tests only on release branches
parent
e23278ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
602af462
...
...
@@ -64,7 +64,7 @@ timestampedNode('SLAVE') {
'''
}
stage
'Files External
Testing
: webdav'
stage
'Files External: webdav'
executeAndReport
(
'tests/autotest-external-results-sqlite-webdav-ownCloud.xml'
)
{
sh
'''phpenv local 7.0
export NOCOVERAGE=1
...
...
@@ -73,7 +73,7 @@ timestampedNode('SLAVE') {
'''
}
stage
'Files External
Testing
: SMB/SAMBA'
stage
'Files External: SMB/SAMBA'
executeAndReport
(
'tests/autotest-external-results-sqlite-smb-silvershell.xml'
)
{
sh
'''phpenv local 7.0
export NOCOVERAGE=1
...
...
@@ -82,7 +82,7 @@ timestampedNode('SLAVE') {
'''
}
stage
'Files External
Testing
: swift/ceph'
stage
'Files External: swift/ceph'
executeAndReport
(
'tests/autotest-external-results-sqlite-swift-ceph.xml'
)
{
sh
'''phpenv local 7.0
export NOCOVERAGE=1
...
...
@@ -91,7 +91,7 @@ timestampedNode('SLAVE') {
'''
}
stage
'Files External
Testing
: SMB/WINDOWS'
stage
'Files External: SMB/WINDOWS'
executeAndReport
(
'tests/autotest-external-results-sqlite-smb-windows.xml'
)
{
sh
'''phpenv local 7.0
export NOCOVERAGE=1
...
...
@@ -102,7 +102,7 @@ timestampedNode('SLAVE') {
step
([
$class
:
'JUnitResultArchiver'
,
testResults:
'tests/autotest-external-results-sqlite.xml'
])
stage
'Primary Objectstore
Test
: swift'
stage
'Primary Objectstore: swift'
executeAndReport
(
'tests/autotest-results-mysql.xml'
)
{
sh
'''phpenv local 7.0
...
...
@@ -116,15 +116,24 @@ timestampedNode('SLAVE') {
'''
}
stage
'Integration Testing'
executeAndReport
(
'build/integration/output/*.xml'
)
{
sh
'''phpenv local 7.0
rm -rf config/config.php
./occ maintenance:install --admin-pass=admin
make clean-test-integration
make test-integration
'''
}
if
(
isOnReleaseBranch
())
{
stage
'Integration Testing'
executeAndReport
(
'build/integration/output/*.xml'
)
{
sh
'''phpenv local 7.0
rm -rf config/config.php
./occ maintenance:install --admin-pass=admin
make clean-test-integration
make test-integration
'''
}
}
}
def
isOnReleaseBranch
()
{
if
(
env
.
BRANCH_NAME
==
'master'
||
env
.
BRANCH_NAME
==
'stable9.1'
||
env
.
BRANCH_NAME
==
'stable9'
||
env
.
BRANCH_NAME
==
'stable8.2'
)
{
return
true
;
}
return
false
}
void
executeAndReport
(
String
testResultLocation
,
def
body
)
{
...
...
@@ -143,7 +152,7 @@ void executeAndReport(String testResultLocation, def body) {
if
(
failed
)
{
if
(
env
.
BRANCH_NAME
==
'master'
||
env
.
BRANCH_NAME
==
'stable9.1'
||
env
.
BRANCH_NAME
==
'stable9'
||
env
.
BRANCH_NAME
==
'stable8.2'
)
{
if
(
isOnReleaseBranch
()
)
{
mail
body:
"project build error is here: ${env.BUILD_URL}"
,
subject:
"Build on release branch failed: ${env.BRANCH_NAME}"
,
to:
'jenkins@owncloud.com'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment