Skip to content

Commit a816334

Browse files
author
Konstantin Nazarov
committed
Filter build matrix for distributions where tarantool-php fails to build
1 parent 5808fbc commit a816334

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Jenkinsfile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
matrix = [
2-
[OS: 'el', DIST: '6', PACK: 'rpm'],
3-
//[OS: 'el', DIST: '7', PACK: 'rpm'],
4-
[OS: 'fedora', DIST: '24', PACK: 'rpm'],
5-
[OS: 'ubuntu', DIST: 'precise', PACK: 'deb'],
6-
[OS: 'ubuntu', DIST: 'trusty', PACK: 'deb'],
7-
[OS: 'ubuntu', DIST: 'yakkety', PACK: 'deb'],
8-
[OS: 'debian', DIST: 'jessie', PACK: 'deb'],
9-
]
10-
111
stage('Build'){
122
packpack = new org.tarantool.packpack()
3+
4+
matrix = packpack.filterMatrix(
5+
packpack.default_matrix,
6+
{!(it['OS'] == 'ubuntu' && it['DIST'] == 'xenial') &&
7+
!(it['OS'] == 'ubuntu' && it['DIST'] == 'yakkety') &&
8+
!(it['OS'] == 'fedora' && it['DIST'] == 'rawhide') &&
9+
!(it['OS'] == 'fedora' && it['DIST'] == '25') &&
10+
!(it['OS'] == 'debian' && it['DIST'] == 'stretch')})
11+
1312
node {
1413
checkout scm
1514
packpack.prepareSources()

0 commit comments

Comments
 (0)