File tree Expand file tree Collapse file tree 3 files changed +24
-18
lines changed Expand file tree Collapse file tree 3 files changed +24
-18
lines changed Original file line number Diff line number Diff line change 74
74
on :
75
75
condition : " $TRAVIS_TAG =~ ^[0-9\\ .]+$"
76
76
all_branches : true
77
+ - stage : post_deploy
78
+ name : Post deploy
79
+ if : repo = "oracle/opengrok" AND tag IS present
80
+ script : dev/post-deploy.sh
81
+ install : true
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Trigger Travis build of the OpenGrok/docker repository.
4
+ echo " Triggering Travis build of OpenGrok/docker repository"
5
+
6
+ body=' {
7
+ "request": {
8
+ "branch":"master"
9
+ }}'
10
+
11
+ if [ -n " $TRAVIS_TOKEN " ]; then
12
+ curl -s -X POST \
13
+ -H " Content-Type: application/json" \
14
+ -H " Accept: application/json" \
15
+ -H " Travis-API-Version: 3" \
16
+ -H " Authorization: token $TRAVIS_TOKEN " \
17
+ -d " $body " \
18
+ https://api.travis-ci.com/repo/OpenGrok%2Fdocker/requests
19
+ fi
Original file line number Diff line number Diff line change 2
2
3
3
# Create distribution that will be uploaded to Github release.
4
4
mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V package
5
-
6
- # Trigger Travis build of the OpenGrok/docker repository.
7
- echo " Triggering Travis build of OpenGrok/docker repository"
8
-
9
- body=' {
10
- "request": {
11
- "branch":"master"
12
- }}'
13
-
14
- if [ -n " $TRAVIS_TOKEN " ]; then
15
- curl -s -X POST \
16
- -H " Content-Type: application/json" \
17
- -H " Accept: application/json" \
18
- -H " Travis-API-Version: 3" \
19
- -H " Authorization: token $TRAVIS_TOKEN " \
20
- -d " $body " \
21
- https://api.travis-ci.com/repo/OpenGrok%2Fdocker/requests
22
- fi
You can’t perform that action at this time.
0 commit comments