Improve jjb for pti rtp project
[ci-management.git] / jjb / pti-rtp / pti-rtp.yaml
index 240d58c..e19d2dd 100644 (file)
     jobs:
       - gerrit-info-yaml-verify
 
-- project:
-    name: pti-rtp-verify
+- pti_rtp_common: &pti_rtp_common
+    name: pti-rtp-common
+    # git repo
     project: pti/rtp
+    # jenkins job name prefix
     project-name: pti-rtp
+    # maven settings file has credentials
+    mvn-settings: pti-rtp-settings
+    mvn-site-id: site
     # use a centos with big memory; docker not required
     build-node: centos7-docker-2c-8g
-    # runs about 30 minutes
+    # use a non-recursive pattern
+    archive-artifacts: '*.log'
+
+- project:
+    <<: *pti_rtp_common
+    name: pti-rtp-verify
+    # runs about 40 minutes
+    build-timeout: 60
+    script: !include-raw-escape:
+        - install-yocto-prereq-centos.sh
+        - verify-yocto.sh
+    jobs:
+      - oran-shell-verify
+
+- project:
+    <<: *pti_rtp_common
+    name: pti-rtp-merge
+    # runs about 40 minutes
     build-timeout: 60
-    script: !include-raw-escape: verify-pti-rtp-centos.sh
+    script: !include-raw-escape:
+        - install-yocto-prereq-centos.sh
+        - verify-yocto.sh
+    jobs:
+      - oran-shell-merge
+
+- project:
+    <<: *pti_rtp_common
+    name: pti-rtp-release-merge
+    # demand 200GB storage
+    build-node: centos7-docker-2c-8g-200g
+    # runs about 18 hours
+    build-timeout: 1200
+    script: !include-raw-escape:
+        - install-yocto-prereq-centos.sh
+        - build-yocto.sh
+        - upload-yocto.sh
     jobs:
-      - oran-verify-shell
+      - oran-shell-release