-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
55 lines (50 loc) · 1.86 KB
/
Copy pathbitbucket-pipelines.yml
File metadata and controls
55 lines (50 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Template Java Gradle build
# This template allows you to test and build your Java project with Gradle.
# The workflow allows running tests, code checkstyle and security scans on the default branch.
# Prerequisites: appropriate project structure should exist in the repository.
pipelines:
default:
- step:
name: Test
image: gradle:6.8.0-jdk11
caches:
- gradle
script:
- export DEV_OAUTH_CLIENT_ID=$DEV_OAUTH_CLIENT_ID
- export DEV_OAUTH_CLIENT_SECRET=$DEV_OAUTH_CLIENT_SECRET
- export QA_OAUTH_CLIENT_ID=$QA_OAUTH_CLIENT_ID
- export QA_OAUTH_CLIENT_SECRET=$QA_OAUTH_CLIENT_SECRET
- export PROD_OAUTH_CLIENT_ID=$PROD_OAUTH_CLIENT_ID
- export PROD_OAUTH_CLIENT_SECRET=$PROD_OAUTH_CLIENT_SECRET
- gradle test
after-script:
- pipe: atlassian/checkstyle-report:0.3.0
artifacts: # defining the artifacts to be passed to each future step.
- build/reports/**
- step:
name: Build boot jar
image: gradle:6.8.0-jdk11
caches:
- gradle
script:
- gradle bootJar
artifacts: # defining the artifacts to be passed to each future step.
- build/libs/**
- step:
name: Create install4j file
deployment: Test
image: torbenmerrald/install4j
caches:
- gradle
script:
- gradle copyInstall4JMedia
artifacts: # defining the artifacts to be passed to each future step.
- deploy/install4j/**
- step:
name: Upload installation EXE to download area
script:
- pipe: atlassian/bitbucket-upload-file:0.3.2
variables:
BITBUCKET_USERNAME: $BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
FILENAME: 'deploy/install4j/*.exe'