forked from yahoo/maha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
screwdriver.yaml
35 lines (31 loc) · 892 Bytes
/
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
cache:
pipeline: ["~/.m2"]
annotations:
screwdriver.cd/restrictPR: fork
shared:
annotations:
screwdriver.cd/cpu: TURBO
screwdriver.cd/ram: TURBO
image: pranavbhole/pbs-docker-images:ubuntu_focal_jdk8_maven_with_cache
# maha core has embedded postgres module which does not run on the root user, this image is built to run with custom maha user
environment:
#Fetches history so Sonar can assign blame.
GIT_SHALLOW_CLONE: false
jobs:
pull-request:
requires: [~pr]
secrets:
- COVERALLS_REPO_TOKEN
steps:
- build: mvn -B clean install
- depTree: mvn dependency:tree
main:
secrets:
- OSSRH_USER
- OSSRH_TOKEN
- PASS_PHRASE
requires: [~tag, ~release, ~commit]
steps:
- prepare: "screwdriver/release_prepare.sh"
- build: mvn -B clean install
- publish: "screwdriver/publish_to_maven.sh"