Add build jobs for sim/o1-interface repo.
Jobs verified in sandbox:
- https://jenkins.o-ran-sc.org/sandbox/view/All/job/sim-o1-interface-manager-docker-verify-master/1/
- https://jenkins.o-ran-sc.org/sandbox/view/All/job/sim-o1-interface-device-docker-verify-master/2/
Signed-off-by: Alex Stancu <alexandru.stancu@highstreet-technologies.com>
Change-Id: Ie1e0ea5b8ea2a4f2ea05bc8914d26b8b55e4f3cf
diff --git a/jjb/sim-o1-interface/sim-o1-interface.yaml b/jjb/sim-o1-interface/sim-o1-interface.yaml
new file mode 100644
index 0000000..bd521c5
--- /dev/null
+++ b/jjb/sim-o1-interface/sim-o1-interface.yaml
@@ -0,0 +1,70 @@
+---
+- project:
+ name: sim-o1-interface-project-view
+ project-name: sim-o1-interface
+ views:
+ - project-view
+
+- project:
+ name: sim-o1-interface-info
+ project: sim/o1-interface
+ project-name: sim-o1-interface
+ branch: master
+ jobs:
+ - gerrit-info-yaml-verify
+
+- sim_o1_interface_common: &sim_o1_interface_common
+ # values apply to all sim/o1-interface docker projects
+ name: sim-o1-interface-common
+ # git repo
+ project: sim/o1-interface
+ # maven settings file has docker credentials
+ mvn-settings: sim-o1-interface-settings
+ # source of docker tag
+ container-tag-method: yaml-file
+
+- project:
+ <<: *sim_o1_interface_common
+ name: sim-o1-interface-manager
+ # jenkins job name prefix
+ project-name: '{name}'
+ # image name
+ docker-name: '{name}'
+ docker-root: ntsimulator
+ # dockerfile is in subdir; needed because Dockerfile includes files outside of build context
+ docker-build-args: '--network=host -f deploy/manager/Dockerfile'
+ # tag file is in subdir
+ container-tag-yaml-dir: ntsimulator/deploy/manager
+ gerrit_trigger_file_paths:
+ - compare-type: REG_EXP
+ pattern: 'ntsimulator/deploy/manager/.*'
+ - compare-type: REG_EXP
+ pattern: 'ntsimulator/src/ntsimulator-manager/.*'
+ - compare-type: REG_EXP
+ pattern: 'ntsimulator/yang/manager/.*'
+ jobs:
+ - '{project-name}-gerrit-docker-jobs'
+ stream:
+ - master:
+ branch: master
+
+- project:
+ <<: *sim_o1_interface_common
+ name: sim-o1-interface-device
+ # jenkins job name prefix
+ project-name: '{name}'
+ # image name
+ docker-name: '{name}'
+ docker-root: ntsimulator
+ # dockerfile is in subdir; needed because Dockerfile includes files outside of build context
+ docker-build-args: '--network=host -f deploy/Dockerfile'
+ # tag file is in subdir
+ container-tag-yaml-dir: ntsimulator/deploy
+ gerrit_trigger_file_paths:
+ - compare-type: REG_EXP
+ pattern: 'ntsimulator/.*'
+ jobs:
+ - '{project-name}-gerrit-docker-jobs'
+ stream:
+ - master:
+ branch: master