This repository was archived by the owner on Nov 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
49 lines (48 loc) · 1.46 KB
/
bitbucket-pipelines.yml
File metadata and controls
49 lines (48 loc) · 1.46 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
# This project uses the GitFlow Workflow as defined here:
# https://www.atlassian.com/git/tutorials/comparing-workflows#GitFlow-workflow
image: maven:3.3.9-jdk-8
clone: # the 'clone' section
depth: 1 # the depth, in this case the clone will contain last one commits
pipelines:
default:
- step:
script:
- echo "Please use a GitFlow branch"
- exit 1;
branches:
develop:
- step:
caches:
- maven
script:
# Deploy to hspc-nexus
- openssl aes-256-cbc -pass pass:$OPENSSL_PWD -in private-key.gpg.enc -out private-key.gpg -d
- gpg --import private-key.gpg
- mvn -V -B -s settings.xml deploy -P DEPLOY-HSPC,hspc-nexus
# Deploy to the snapshot repo
- mvn -V -B -s settings.xml deploy -P DEPLOY
feature/*:
- step:
caches:
- maven
script:
- mvn -B verify
release/*:
- step:
caches:
- maven
script:
- mvn -B verify
hotfix/*:
- step:
caches:
- maven
script:
- mvn -B verify
master:
- step:
script:
# Deploy to maven central
- openssl aes-256-cbc -pass pass:$OPENSSL_PWD -in private-key.gpg.enc -out private-key.gpg -d
- gpg --batch --import private-key.gpg
- mvn -V -B -s settings.xml deploy -P DEPLOY,ossrh