This repository has been archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy path.gitlab-ci.yml
110 lines (96 loc) · 2.78 KB
/
.gitlab-ci.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
include:
- project: graphaware/devops/gitlab-ci-templates
file: neo4j-framework-template.yml
stages:
- install
- test
- deploy
- postDeploy
- triggers
frameworkVersionBump:
script:
- NEW_VERSION="${VERSION%.*}.$((${VERSION##*.}+1))-SNAPSHOT"
- CUSTOM_SPACE=' ' #otherwise bash joins spaces into one
- CHANGELOG_MSG="${CHANGELOG_MSG:-${VERSION}:\n${CUSTOM_SPACE}- Upgrade to Neo4j ${VERSION%.*}}\n"
- echo -e "$CHANGELOG_MSG\n$(cat changes.txt)" > changes.txt # add the message into changes.txt, -e enable special characters (\n)
- git commit -a -m "[maven-release-plugin] Release with new neo4j version" #You can add edition of a file to pom using ant-plugin. You can connect it to the goals of the maven release plugin. But this plugin won't commit anything else but POMs!!!
- mvn release:clean release:prepare
$MAVEN_CLI_OPTS
-DreleaseVersion=$VERSION
-DdevelopmentVersion=$NEW_VERSION
-Dtag="Version-${VERSION}"
- mvn release:perform
$MAVEN_CLI_OPTS
only:
refs:
- master
variables:
- $VERSION
artifacts: #used for s3 upload
paths:
- build/target
uploadToS3:
before_script:
- FROM="build/target/graphaware-server-community-$VERSION.jar"
- TO="$AWS_PATH/graphaware-server-community-$VERSION.jar"
only:
refs:
- master
variables:
- $VERSION
# publishJavaDoc:
# extends: .publishJavaDoc
# variables:
# FROM: api/target/apidocs
# TO: framework
# before_script: []
# only:
# refs:
# - master
# variables:
# - $VERSION
# #Delay triggers by 30 minutes - maven central needs some time to process the artifacts
# delay30mins:
# extends: .delay30mins
# #trigger template
# .trigger:
# stage: triggers
# variables:
# PARENT_VERSION: $VERSION
# trigger:
# strategy: depend
# only:
# refs:
# - master
# variables:
# - $VERSION
# triggerUUID:
# extends: .trigger
# trigger:
# project: GraphAware/neo4j-plugins/neo4j-uuid
# triggerRestTest:
# extends: .trigger
# trigger:
# project: GraphAware/neo4j-plugins/neo4j-resttest
# triggerExpire:
# extends: .trigger
# trigger:
# project: GraphAware/neo4j-plugins/neo4j-expire
# triggerRecommendation:
# extends: .trigger
# trigger:
# project: GraphAware/neo4j-plugins/neo4j-reco
# triggerTimetree:
# extends: .trigger
# trigger:
# project: GraphAware/neo4j-plugins/neo4j-timetree
# triggerGAstarter:
# extends: .trigger
# trigger:
# project: GraphAware/neo4j-plugins/graphaware-starter
# triggerRecommendationsMeetup:
# extends: .trigger
# trigger:
# project: GraphAware/neo4j-plugins/recommendations-meetup
#neo4j-to-elasticsearch is launched from UUID as it depends on it
#neo4j-triggers is launched from UUID as it depends on it