File tree Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -9,27 +9,13 @@ def SUCCESS = hudson.model.Result.SUCCESS.toString()
9
9
currentBuild. result = SUCCESS
10
10
11
11
try {
12
- parallel check : {
13
- stage(' Check ' ) {
12
+ build : {
13
+ stage(' Build ' ) {
14
14
node {
15
15
checkout scm
16
16
try {
17
17
sh " ./gradlew clean assemble check --no-daemon --stacktrace"
18
- } catch (Exception e) {
19
- currentBuild. result = ' FAILED: check'
20
- throw e
21
- } finally {
22
- junit ' **/build/test-results/*/*.xml'
23
- }
24
- }
25
- }
26
- }
27
18
28
- if (currentBuild. result == ' SUCCESS' ) {
29
- parallel deploy : {
30
- stage(' Deploy Application' ) {
31
- node {
32
- checkout scm
33
19
sh " ./ci/scripts/install-cf.sh"
34
20
withCredentials([usernamePassword(credentialsId : ' backportbot-cf' , passwordVariable : ' CF_PASSWORD' , usernameVariable : ' CF_USERNAME' )]) {
35
21
sh " ./cf login -a api.run.pivotal.io -o FrameworksAndRuntimes -s rwinch -u '$CF_USERNAME ' -p '$CF_PASSWORD '"
41
27
}
42
28
}
43
29
}
30
+ } catch (Exception e) {
31
+ currentBuild. result = ' FAILED: check'
32
+ throw e
33
+ } finally {
34
+ junit ' **/build/test-results/*/*.xml'
44
35
}
45
36
}
46
37
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ VENERABLE_APP_NAME="$APP_NAME-venerable"
15
15
cf delete $VENERABLE_APP_NAME -f
16
16
cf rename $APP_NAME $VENERABLE_APP_NAME
17
17
18
- if cf push $APP_NAME -p build/libs/backport-bot-0.0.1-SNAPSHOT .jar $PUSH_ARGS ; then
18
+ if cf push $APP_NAME -p build/libs/* .jar $PUSH_ARGS ; then
19
19
# the app started successfully so remove venerable app
20
20
cf delete $VENERABLE_APP_NAME -f
21
21
else
You can’t perform that action at this time.
0 commit comments