-
Notifications
You must be signed in to change notification settings - Fork 18
/
job_matrix_actions.yaml
76 lines (65 loc) · 2.63 KB
/
job_matrix_actions.yaml
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
---
job: actions
kubernetes:
cloud: swx-k8s-spray
volumes:
- {mountPath: /hpc/local, hostPath: /hpc/local}
- {mountPath: /auto/sw_tools, hostPath: /auto/sw_tools}
- {mountPath: /.autodirect/mtrswgwork, hostPath: /.autodirect/mtrswgwork}
- {mountPath: /.autodirect/sw/release, hostPath: /.autodirect/sw/release}
runs_on_dockers:
- {name: 'blackduck', url: 'harbor.mellanox.com/toolbox/ngci-centos:latest', category: 'tool', arch: 'x86_64'}
- {name: 'coverity', url: 'harbor.mellanox.com/swx-storage/ci-demo/x86_64/centos7-7:latest', category: 'tool', arch: 'x86_64'}
- {name: 'builder', url: 'harbor.mellanox.com/swx-storage/ci-demo/x86_64/centos7-7:latest', arch: 'x86_64'}
credentials:
- {credentialsId: '311997c9-cc1c-4d5d-8ba2-6eb43ba0a06d', usernameVariable: 'NEXUS_USER', passwordVariable: 'NEXUS_PASS'}
env:
NEXUS_URL: http://swx-repos.mtr.labs.mlnx:8081/
steps:
- name: Nexus upload rpm
credentialsId: '311997c9-cc1c-4d5d-8ba2-6eb43ba0a06d'
resource: actions/nexus.py
containerSelector: "{name: 'builder'}"
run: |
echo "./build_package.sh"
echo ".ci/actions/nexus.py yum -u $NEXUS_URL -U $NEXUS_USER -P $NEXUS_PASS -a upload -n test_yum_repo --file /tmp/mlnx-libsnap-1.0.1-16.mlnx.x86_64.rpm --upload_path 7/x86_64/"
- name: Coverity embed
resource: actions/coverity.sh
containerSelector: "{name: 'coverity'}"
run: |
echo Running action script:
./autogen.sh
./configure
make -j 3 clean ||:
.ci/actions/coverity.sh --build_script 'make -j 3' --ignore_files 'devx googletest tests'
- name: Coverity scan
shell: action
module: dynamicAction
run: coverity.sh
containerSelector: "{name: 'coverity'}"
args:
- "--pre_script './autogen.sh;./configure;make -j 3 clean'"
- "--build_script 'make -j 3'"
- "--ignore_files 'devx googletest tests'"
archiveArtifacts: 'cov.log'
- name: Blackduck scan source
containerSelector: "{name: 'blackduck'}"
shell: action
module: ngci
run: NGCIBlackDuckScan
args:
projectName: "NGCIBlackDuckScan"
projectVersion: "ci-demo"
projectVersion: "1.0"
projectSrcPath: "${WORKSPACE}/src"
attachArtifact: true
reportName: "BlackDuck report"
scanMode: "source"
env:
SPRING_APPLICATION_JSON: '{"blackduck.url":"https://blackduck.mellanox.com/","blackduck.api.token":"ODMwOWYwMzEtODA2ZC00MzBjLWI1ZDEtNmFiMjBkYzQzMzkwOjNmNjExN2M1LWE2ZmEtNDZlYS1hZjRiLTZlNDgwNjAwOTVjNw=="}'
- name: Trigger external job
containerSelector: "{name: 'blackduck'}"
shell: action
module: groovy
run: |
build job: 'cidemo-trigger-test', wait: true