File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 5
5
<io .onedev.server.buildspec.job.Job>
6
6
<name >Release</name >
7
7
<paramSpecs />
8
- <image >@scripts:builtin:maven:determine-docker-image@ </image >
8
+ <image >1dev/build-environment:1.1 </image >
9
9
<commands >
10
10
<string >set -e</string >
11
11
<string >echo "Detecting project version (may require some time while downloading maven dependencies)..."</string >
12
12
<string >buildVersion=$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout)</string >
13
13
<string >echo "##onedev[SetBuildVersion '$buildVersion']"</string >
14
- <string >cp settings.xml /root/.m2/</string >
15
- <string >mvn clean deploy -Dmaven.deploy.password=@secrets:maven-deploy-password@</string >
14
+ <string >mvn deploy -Dmaven.deploy.password=@secrets:maven-deploy-password@</string >
16
15
</commands >
17
16
<retrieveSource >true</retrieveSource >
18
17
<submoduleCredentials />
23
22
<triggers >
24
23
<io .onedev.server.buildspec.job.trigger.BranchUpdateTrigger>
25
24
<params />
25
+ <branches >master</branches >
26
26
</io .onedev.server.buildspec.job.trigger.BranchUpdateTrigger>
27
27
</triggers >
28
28
<caches >
44
44
<paramSpecs />
45
45
<image >alpine/git:1.0.7</image >
46
46
<commands >
47
- <string >git push https://robinshine:@secrets:github-password@\@github.com/theonedev/commons HEAD:master</string >
47
+ <string >git push -f https://robinshine:@secrets:github-password@\@github.com/theonedev/commons HEAD:master</string >
48
48
</commands >
49
49
<retrieveSource >true</retrieveSource >
50
50
<submoduleCredentials />
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments