Refactor!: Update JJB code to comply with 5.x
[ci-management.git] / jjb / sim-o1-interface / sim-o1-interface.yaml
index 41fb199..d173fe2 100644 (file)
@@ -13,7 +13,7 @@
     jobs:
       - gerrit-info-yaml-verify
 
-- sim_o1_interface_docker: &sim_o1_interface_docker
+- _sim_o1_interface_docker: &sim_o1_interface_docker
     # values apply to all sim/o1-interface docker projects
     name: sim-o1-interface-common
     # git repo
@@ -25,7 +25,6 @@
     # source of docker tag
     container-tag-method: yaml-file
     # if no container-tag-yaml-dir is defined, container-tag.yml is taken from the docker-root
-    docker-root: ntsimulator
     build-node: ubuntu1804-docker-4c-4g
     jobs:
       - '{project-name}-gerrit-docker-jobs'
@@ -44,6 +43,7 @@
     docker-build-args: '--network=host -f deploy/base/ubuntu.Dockerfile'
     # tag file latest, since it is base for others
     container-tag-method: latest
+    docker-root: ntsimulator
     gerrit_trigger_file_paths:
       - compare-type: REG_EXP
         pattern: 'ntsimulator/ntsim-ng/.*'
@@ -58,7 +58,8 @@
     # image name
     docker-name: 'o-ran-sc/ntsim-ng-manager'
     # dockerfile is in subdir
-    docker-build-args: '--network=host -f deploy/nts-manager/ubuntu.Dockerfile'
+    docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
+    docker-root: ntsimulator/deploy/nts-manager
     gerrit_trigger_file_paths:
       - compare-type: REG_EXP
         pattern: 'ntsimulator/deploy/nts-manager/.*'
@@ -71,7 +72,8 @@
     # image name
     docker-name: ' o-ran-sc/nts-ng-o-ran-fh'
     # dockerfile is in subdir
-    docker-build-args: '--network=host -f deploy/o-ran/ubuntu.Dockerfile'
+    docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
+    docker-root: ntsimulator/deploy/o-ran
     gerrit_trigger_file_paths:
       - compare-type: REG_EXP
         pattern: 'ntsimulator/deploy/o-ran/.*'
     # image name
     docker-name: 'o-ran-sc/nts-ng-x-ran'
     # dockerfile is in subdir
-    docker-build-args: '--network=host -f deploy/x-ran/ubuntu.Dockerfile'
+    docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
+    docker-root: ntsimulator/deploy/x-ran
     gerrit_trigger_file_paths:
       - compare-type: REG_EXP
         pattern: 'ntsimulator/deploy/x-ran/.*'
 
+- project:
+    <<: *sim_o1_interface_docker
+    name: sim-o1-interface-ntsim-ng-o-ran-ru-fh
+    # jenkins job name prefix
+    project-name: '{name}'
+    # image name
+    docker-name: ' o-ran-sc/nts-ng-o-ran-ru-fh'
+    # dockerfile is in subdir
+    docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
+    docker-root: ntsimulator/deploy/o-ran-ru-fh
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: 'ntsimulator/deploy/o-ran-ru-fh/.*'
+
+- project:
+    <<: *sim_o1_interface_docker
+    name: sim-o1-interface-ntsim-ng-o-ran-du
+    # jenkins job name prefix
+    project-name: '{name}'
+    # image name
+    docker-name: ' o-ran-sc/nts-ng-o-ran-du'
+    # dockerfile is in subdir
+    docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
+    docker-root: ntsimulator/deploy/o-ran-du
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: 'ntsimulator/deploy/o-ran-du/.*'
+
+- project:
+    <<: *sim_o1_interface_docker
+    name: sim-o1-interface-ntsim-ng-blank
+    # jenkins job name prefix
+    project-name: '{name}'
+    # image name
+    docker-name: ' o-ran-sc/nts-ng-blank'
+    # dockerfile is in subdir
+    docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
+    docker-root: ntsimulator/deploy/blank
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: 'ntsimulator/deploy/blank/.*'
+
+- project:
+    <<: *sim_o1_interface_docker
+    name: sim-o1-interface-ntsim-ng-tapi-topology
+    # jenkins job name prefix
+    project-name: '{name}'
+    # image name
+    docker-name: ' o-ran-sc/smo-nts-ng-topology-server'
+    # dockerfile is in subdir
+    docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
+    docker-root: ntsimulator/deploy/smo-nts-ng-topology-server
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: 'ntsimulator/deploy/smo-nts-ng-topology-server/.*'
+
 - project:
     <<: *sim_o1_interface_docker
     name: sim-o1-interface-release