Skip to content

Commit 550210f

Browse files
committed
fix Travis build trigger
1 parent efca815 commit 550210f

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.ci/travis/linux/script.sh

+12-9
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,21 @@ if [[ ${DOCKER_BUILD_QGIS_IMAGE} =~ true ]]; then
3838
docker cp ${container_id}:/usr/src/QGIS/.ccache_image_build ${CCACHE_DIR_IMAGE_BUILD}
3939
popd
4040
echo "Trigger build of PyQGIS Documentation"
41-
body="{
42-
'request': {
43-
'branch':'master',
44-
'message': 'Trigger PyQGIS doc build after release of new Docker image as ${DOCKER_TAG}',
45-
'config': {
46-
'merge_mode': 'deep_merge',
47-
'env': {
48-
'global': ['QGIS_VERSION_BRANCH=${TRAVIS_BRANCH}']
41+
body='{
42+
"request": {
43+
"branch":"master",
44+
"message": "Trigger PyQGIS doc build after release of new Docker image as __DOCKER_TAG__",
45+
"config": {
46+
"merge_mode": "deep_merge",
47+
"matrix": {
48+
"include": {
49+
"env": ["QGIS_VERSION_BRANCH=__QGIS_VERSION_BRANCH__"]
50+
}
4951
}
5052
}
5153
}
52-
}"
54+
}'
55+
body=$(sed "s/__QGIS_VERSION_BRANCH__/${TRAVIS_BRANCH}/; s/__DOCKER_TAG__/${DOCKER_TAG}/" <<< $body)
5356
curl -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" \
5457
-H "Travis-API-Version: 3" -H "Authorization: token $TRAVIS_TOKEN" -d "$body" \
5558
https://api.travis-ci.org/repo/qgis%2Fpyqgis/requests

0 commit comments

Comments
 (0)