-
Notifications
You must be signed in to change notification settings - Fork 96
/
screwdriver.yaml
53 lines (47 loc) · 1.56 KB
/
screwdriver.yaml
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
cache:
event: ["~/.m2"]
annotations:
screwdriver.cd/restrictPR: fork
shared:
annotations:
screwdriver.cd/cpu: TURBO
screwdriver.cd/ram: TURBO
image: maven:3.6.3-adoptopenjdk-11
jobs:
pull-commit:
requires: [~pr]
steps:
- header: echo "Starting the pipeline"
- lua-install: apt-get update -qy && apt-get install -y lua5.2
- build: ./screwdriver/mvn-build.bash
environment:
GIT_SHALLOW_CLONE: false
master-commit:
requires: [~commit]
steps:
- header: echo "Starting the commit pipeline"
- debug: |
echo "Master Commit : ${SD_EVENT_ID} ${SD_JOB_NAME} ${SD_PARENT_BUILD_ID}"
- lua-install: apt-get update -qy && apt-get install -y lua5.2
- build: ./screwdriver/mvn-build.bash
- prep-release: apt-get update -y && apt-get install -y python
- release: ./screwdriver/is_whitelisted.bash && ./screwdriver/tag-for-release.bash
environment:
GIT_SHALLOW_CLONE: false
tag-release:
secrets:
- GPG_KEYNAME
- GPG_PASSPHRASE
- GPG_ENCPHRASE
- OSSRH_USER
- OSSRH_TOKEN
requires: [~tag:/\d+\.\d+\.\d+/]
steps:
- header: echo "Starting the release pipeline"
- debug: |
echo "Releasing : ${SD_EVENT_ID} ${SD_JOB_NAME} ${SD_PARENT_BUILD_ID}"
- lua-install: apt-get update -qy && apt-get install -y lua5.2
- gpg-install: apt-get update -qy && apt-get install -y gnupg
- release: ./screwdriver/is_whitelisted.bash
- build: "screwdriver/scripts/build.sh"
- publish: "screwdriver/scripts/publish.sh"