forked from theonedev/commons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.onedev-buildspec
72 lines (71 loc) · 3.09 KB
/
.onedev-buildspec
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
<?xml version="1.0" encoding="UTF-8"?>
<io.onedev.server.buildspec.BuildSpec revision="1">
<jobs>
<io.onedev.server.buildspec.job.Job>
<name>Release</name>
<paramSpecs/>
<image>1dev/build-environment:1.1</image>
<commands>
<string>set -e</string>
<string>echo "Detecting project version (may require some time while downloading maven dependencies)..."</string>
<string>buildVersion=$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout)</string>
<string>echo "##onedev[SetBuildVersion '$buildVersion']"</string>
<string>mvn deploy -Dmaven.deploy.password=@secrets:maven-deploy-password@</string>
</commands>
<retrieveSource>true</retrieveSource>
<submoduleCredentials/>
<jobDependencies/>
<projectDependencies/>
<services/>
<reports/>
<triggers>
<io.onedev.server.buildspec.job.trigger.BranchUpdateTrigger>
<params/>
<branches>master</branches>
</io.onedev.server.buildspec.job.trigger.BranchUpdateTrigger>
</triggers>
<caches>
<io.onedev.server.buildspec.job.CacheSpec>
<key>maven-cache</key>
<path>/root/.m2/repository</path>
</io.onedev.server.buildspec.job.CacheSpec>
</caches>
<cpuRequirement>250m</cpuRequirement>
<memoryRequirement>128m</memoryRequirement>
<timeout>3600</timeout>
<postBuildActions/>
<retryCondition>never</retryCondition>
<maxRetries>3</maxRetries>
<retryDelay>30</retryDelay>
</io.onedev.server.buildspec.job.Job>
<io.onedev.server.buildspec.job.Job>
<name>Sync with GitHub</name>
<paramSpecs/>
<image>alpine/git:1.0.7</image>
<commands>
<string>git push -f https://robinshine:@secrets:github-password@\@github.com/theonedev/commons HEAD:master</string>
</commands>
<retrieveSource>true</retrieveSource>
<submoduleCredentials/>
<jobDependencies/>
<projectDependencies/>
<services/>
<reports/>
<triggers>
<io.onedev.server.buildspec.job.trigger.BranchUpdateTrigger>
<params/>
<branches>master</branches>
</io.onedev.server.buildspec.job.trigger.BranchUpdateTrigger>
</triggers>
<caches/>
<cpuRequirement>250m</cpuRequirement>
<memoryRequirement>128m</memoryRequirement>
<timeout>3600</timeout>
<postBuildActions/>
<retryCondition>never</retryCondition>
<maxRetries>3</maxRetries>
<retryDelay>30</retryDelay>
</io.onedev.server.buildspec.job.Job>
</jobs>
<properties/>
</io.onedev.server.buildspec.BuildSpec>