-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.all.local.yml
executable file
·96 lines (93 loc) · 3.06 KB
/
.all.local.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
kind: pipeline
name: build
steps:
- name: buildLocal
image: registry.cn-beijing.aliyuncs.com/king019/docker:build
privileged: true
#detach: true
volumes:
- name: maven
path: /root/.m2
- name: sock
path: /var/run/docker.sock
- name: docker_config
path: /root/.docker/config.json
commands:
- chmod -R 777 /bin
- which docker
- docker version
- source /etc/profile;java -version
- mvn clean compile exec:java -Dexec.mainClass="com.k.docker.jenkins.JenkinsBuildShell" -Dexec.args="ws=/drone/src@thread=1@rep=false@push=true@local=true"
# - mvn clean compile exec:java -Dexec.mainClass="com.k.docker.jenkins.JenkinsBuildShell" -Dexec.args="ws=/opt/soft/version/aliyun/docker@thread=5@rep=true@push=false@local=true"
- pwd;ls
- sh ./target/local_region/platform/noSuffix_false.sh
- name: buildAliyunBeijing
image: registry.cn-beijing.aliyuncs.com/king019/docker:build
privileged: true
volumes:
- name: maven
path: /root/.m2
- name: sock
path: /var/run/docker.sock
- name: docker_config
path: /root/.docker/config.json
commands:
- chmod -R 777 /bin
- which docker
- docker version
- source /etc/profile;java -version
- mvn clean compile exec:java -Dexec.mainClass="com.k.docker.jenkins.JenkinsBuildShell" -Dexec.args="ws=/drone/src@thread=1@rep=false@push=true@local=false"
- pwd;ls
- chmod -R 777 .
- cd ./target
- sh ./aliyun_beijing_true.sh
- name: buildTenBeijing
image: registry.cn-beijing.aliyuncs.com/king019/docker:build
privileged: true
volumes:
- name: maven
path: /root/.m2
- name: sock
path: /var/run/docker.sock
- name: docker_config
path: /root/.docker/config.json
commands:
- chmod -R 777 /bin
- which docker
- docker version
- source /etc/profile;java -version
- mvn clean compile exec:java -Dexec.mainClass="com.k.docker.jenkins.JenkinsBuildShell" -Dexec.args="ws=/drone/src@thread=1@rep=false@push=true@local=false"
- pwd;ls
- chmod -R 777 .
- cd ./target
- sh ./tenyun_beijing_true.sh
- name: buildDocker
image: registry.cn-beijing.aliyuncs.com/king019/docker:build
privileged: true
volumes:
- name: maven
path: /root/.m2
- name: sock
path: /var/run/docker.sock
- name: docker_config
path: /root/.docker/config.json
commands:
- chmod -R 777 /bin
- which docker
- docker version
- source /etc/profile;java -version
- mvn clean compile exec:java -Dexec.mainClass="com.k.docker.jenkins.JenkinsBuildShell" -Dexec.args="ws=/drone/src@thread=1@rep=false@push=true@local=false"
- pwd;ls
- chmod -R 777 .
- cd ./target
- sh ./docker_true.sh
volumes:
- name: maven
host:
path: /opt/soft/docker/data/maven/m2
- name: sock
host:
path: /var/run/docker.sock
- name: docker_config
host:
path: /opt/soft/docker/data/jenkins/jkwk/config.json