JJB definitioin for O-DU L2
This job definition has been verified in sandbox:
https://jenkins.o-ran-sc.org/sandbox/me/my-views/view/all/job/o-du-l2-docker-verify-master/1/.
Change-Id: Ie5cd0ddf4a1f805be414611990a4d7f353e8c0bb
Signed-off-by: wrider <lji@research.att.com>
diff --git a/jjb/o-du-l2/o-du-l2.yaml b/jjb/o-du-l2/o-du-l2.yaml
new file mode 100644
index 0000000..949b3b6
--- /dev/null
+++ b/jjb/o-du-l2/o-du-l2.yaml
@@ -0,0 +1,64 @@
+---
+- project:
+ name: o-du-l2-project-view
+ project-name: o-du-l2
+ views:
+ - project-view
+
+- project:
+ name: o-du-l2-info
+ project: o-du/l2
+ project-name: o-du-l2
+ branch: master
+ jobs:
+ - gerrit-info-yaml-verify
+
+- o_du_l2_common: &o_du_l2_common
+ # values apply to all o-du/l2 docker projects
+ name: o-du-l2-common
+ # git repo
+ project: o-du/l2
+ # jenkins job name prefix
+ project-name: o-du-l2
+ # maven settings file has docker credentials
+ mvn-settings: o-du-l2-settings
+ # source of docker tag
+ container-tag-method: yaml-file
+
+- project:
+ <<: *o_du_l2_common
+ name: o-du-l2
+ # jenkins job name prefix
+ project-name: '{name}'
+ # image name
+ docker-name: 'o-ran-sc/{name}'
+ docker-build-args: '--network=host'
+ jobs:
+ - '{project-name}-gerrit-docker-jobs'
+ stream:
+ - master:
+ branch: master
+
+- project:
+ <<: *o_du_l2_common
+ name: o-du-l2-cu-stub
+ # jenkins job name prefix
+ project-name: '{name}'
+ # image name
+ docker-name: 'o-ran-sc/{name}'
+ docker-build-args: '--network=host -f Dockerfile-cu-stub'
+ jobs:
+ - '{project-name}-gerrit-docker-jobs'
+ stream:
+ - master:
+ branch: master
+
+- project:
+ <<: *o_du_l2_common
+ name: o-du-l2-release
+ branch: master
+ # maven release requires sigul which requires centos
+ # container release requires docker
+ build-node: centos7-docker-2c-8g
+ jobs:
+ - '{project-name}-gerrit-release-jobs'
\ No newline at end of file