forked from apulis/Apulis-AI-Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
53 lines (52 loc) · 3.06 KB
/
Jenkinsfile
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
@Library('apulis-build@master') _
buildPlugin ( {
repoName = 'DLWorkspace'
dockerImages = [
[
'imageName': 'cicd/dlworkspace-compile',
'directory': 'dlworkspace-compile',
'arch': ['amd64']
],
[
'compileContainer': 'cicd/dlworkspace-compile',
'preBuild':[
['src/ClusterBootstrap', 'mkdir -p build'],
['src/ClusterBootstrap', 'pip install -r scripts/requirements.txt'],
['src/ClusterManager', 'pip install -r requirements.txt'],
['src/ClusterBootstrap/build', 'cp -r ../../docker-images/restfulapi2 .'],
['src/ClusterBootstrap', 'cp config.yaml.template config.yaml'],
['src/ClusterBootstrap', 'python ./deploy.py rendertemplate ../docker-images/restfulapi2/ports.conf build/restfulapi2/ports.conf'],
['src/ClusterBootstrap', 'python ./deploy.py rendertemplate ../docker-images/restfulapi2/000-default.conf build/restfulapi2/000-default.conf'],
['src/ClusterBootstrap/build/restfulapi2', 'cp -r ../../../Jobs_Templete Jobs_Templete'],
['src/ClusterBootstrap/build/restfulapi2', 'cp -r ../../../utils utils'],
['src/ClusterBootstrap/build/restfulapi2', 'cp -r ../../../RestAPI RestAPI'],
['src/ClusterBootstrap/build/restfulapi2', 'cp -r ../../../ClusterManager ClusterManager'],
['src/ClusterBootstrap/build/restfulapi2', 'cp ../../../../version-info version-info']
],
'imageName': 'apulistech/restfulapi2',
'directory': 'src/ClusterBootstrap/build/restfulapi2',
'arch': ['amd64']
],
[
'compileContainer': 'cicd/dlworkspace-compile',
'preBuild':[
['src/ClusterBootstrap', 'mkdir -p build/webui3'],
['src/ClusterBootstrap', 'pip install -r scripts/requirements.txt'],
['src/ClusterManager', 'pip install -r requirements.txt'],
['src/ClusterBootstrap/build', 'cp -r ../../docker-images/webui3 .'],
['src/ClusterBootstrap', 'cp config.yaml.template config.yaml'],
['src/ClusterBootstrap/build/webui3', 'cp -rf ../../../dashboard/package.json .'],
['src/ClusterBootstrap/build/webui3', 'cp -rf ../../../dashboard/yarn.lock .'],
['src/ClusterBootstrap/build/webui3', 'cp -rf ../../../dashboard/config .'],
['src/ClusterBootstrap/build/webui3', 'cp -rf ../../../dashboard/public .'],
['src/ClusterBootstrap/build/webui3', 'cp -rf ../../../dashboard/server .'],
['src/ClusterBootstrap/build/webui3', 'cp -rf ../../../dashboard/public .'],
['src/ClusterBootstrap/build/webui3', 'cp -rf ../../../dashboard/src .'],
['src/ClusterBootstrap/build/webui3', 'cp -rf ../../../dashboard/scripts .']
],
'imageName': 'apulistech/webui3',
'directory': 'src/ClusterBootstrap/build/webui3',
'arch': ['amd64']
]
]
})