Migrate cicn job templates to global-jjb
[ci-management.git] / jjb / cicn / cicn.yaml
index 2cff11d..4e7acab 100644 (file)
           branch: 'cframework/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+
     type:
       - short
       - long
           branch: 'cframework/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+
     type:
       - short
       - long
           branch: 'ccnxlibs/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+
     type:
       - short
       - long
           branch: 'ccnxlibs/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+
     type:
       - short
       - long
           branch: 'libicnet/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+
     type:
       - short
       - long
           branch: 'sb-forwarder/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+
     type:
       - short
       - long
           branch: 'http-server/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+
     type:
       - short
       - long
           branch: 'cicn-plugin/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+
     type:
       - short
       - long
           branch: 'viper/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+
     type:
       - short
       - long
           branch: 'vicn/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+
     type:
       - short
       - long
           branch: 'android-sdk/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+      **/*.apk
+
     type:
       - short
       - long
           branch: 'vicn/master'
           repo-stream-part: 'master'
 
+    archive-artifacts: >
+      **/*.rpm
+      **/*.deb
+      **/*.tar
+
     type:
       - short
       - long
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'release'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'release'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/longbow/build/*.rpm,
-            **/longbow/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-longbow-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: '{stream}'
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
       - os-parameter:
+          description: Operating system.
           os: '{os}'
 
     scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-longbow-build.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/longbow/build/*.rpm,
-            **/longbow/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-longbow-docs-merge-{stream}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: '{stream}'
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
             notbuilt: true
 
     builders:
+      - lf-infra-pre-build
       - maven-target:
           maven-version: 'mvn33-new'
           goals: '--version'
           - include-raw-cicn-longbow-docs.sh
 
     publishers:
-      - archive:
-          artifacts: 'longbow/build/documentation/*.tar'
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-longbow-docs-verify-{stream}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: '{stream}'
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - maven-target:
           maven-version: 'mvn33-new'
           goals: '--version'
           - include-raw-cicn-longbow-docs.sh
 
     publishers:
-      - archive:
-          artifacts: 'longbow/build/documentation/*.tar'
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-libparc-merge-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'release'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'release'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           result: 'failure'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/libparc/build/*.rpm,
-            **/libparc/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-libparc-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
+      - maven-project-parameter:
+          maven: 'mvn33-new'
+      - maven-exec:
+          maven-version: 'mvn33-new'
       - os-parameter:
+          description: Operating system.
           os: '{os}'
+      - repo-name-parameter:
+          repo-name: '{repo-stream-part}.{repo-os-part}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-libparc-build.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/libparc/build/*.rpm,
-            **/libparc/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-libparc-docs-merge-{stream}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
+      - maven-project-parameter:
+          maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
             notbuilt: true
 
     builders:
+      - lf-infra-pre-build
       - maven-target:
           maven-version: 'mvn33-new'
           goals: '--version'
           - include-raw-cicn-libparc-docs.sh
 
     publishers:
-      - archive:
-          artifacts: 'libparc/build/documentation/*.tar'
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-libparc-docs-verify-{stream}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - maven-target:
           maven-version: 'mvn33-new'
           goals: '--version'
           - include-raw-cicn-libparc-docs.sh
 
     publishers:
-      - archive:
-          artifacts: 'libparc/build/documentation/*.tar'
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 
 - job-template:
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'master'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'master'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           result: 'failure'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/libccnx-common/build/*.rpm,
-            **/libccnx-common/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-libccnx-common-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - os-parameter:
+          description: Operating system.
           os: '{os}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-libccnx-common-build.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/libccnx-common/build/*.rpm,
-            **/libccnx-common/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-libccnx-transport-rta-merge-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'master'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'master'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           result: 'failure'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/libccnx-transport-rta/build/*.rpm,
-            **/libccnx-transport-rta/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-libccnx-transport-rta-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - os-parameter:
+          description: Operating system.
           os: '{os}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-libccnx-transport-rta-build.sh
 
     publishers:
-      - archive:
-          # yamllint disable-line rule:line-length
-          artifacts: >
-            **/libccnx-transport-rta/build/*.rpm,
-            **/libccnx-transport-rta/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-libccnx-portal-merge-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'master'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'master'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           result: 'failure'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/libccnx-portal/build/*.rpm,
-            **/libccnx-portal/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-libccnx-portal-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - os-parameter:
+          description: Operating system.
           os: '{os}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-libccnx-portal-build.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/libccnx-portal/build/*.rpm,
-            **/libccnx-portal/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-libicnet-merge-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'master'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'master'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           result: 'failure'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/build/*.rpm,
-            **/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-libicnet-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - os-parameter:
+          description: Operating system.
           os: '{os}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-libicnet-build.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/build/*.rpm,
-            **/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-metis-merge-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'master'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'master'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           result: 'failure'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/metis/build/*.rpm,
-            **/metis/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-metis-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - os-parameter:
+          description: Operating system.
           os: '{os}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-metis-build.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/metis/build/*.rpm,
-            **/metis/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-http-server-merge-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'master'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'master'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           result: 'failure'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/build/*.rpm,
-            **/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-http-server-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - os-parameter:
+          description: Operating system.
           os: '{os}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-http-server-build.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/build/*.rpm,
-            **/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-vpp-plugin-merge-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'master'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'master'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/cicn-plugin/build/*.rpm,
-            **/cicn-plugin/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-vpp-plugin-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'msater'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'master'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           result: 'failure'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/build/*.rpm,
-            **/build/*.deb,
-            **/libdash/build/*.rpm,
-            **/libdash/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-viper-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - os-parameter:
+          description: Operating system.
           os: '{os}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-viper-build.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/build/*.rpm,
-            **/build/*.deb,
-            **/libdash/build/*.rpm,
-            **/libdash/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-radio-emulators-merge-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'master'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'master'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          # yamllint disable-line rule:line-length
-          artifacts: >
-            **/emu-radio/build/*.rpm,
-            **/emu-radio/build/*.deb,
-            **/emu-radio/ns3-packages/*.rpm,
-            **/emu-radio/ns3-packages/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-radio-emulators-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - os-parameter:
+          description: Operating system.
           os: '{os}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-radio-emulators-build.sh
 
     publishers:
-      - archive:
-          # yamllint disable-line rule:line-length
-          artifacts: >
-            **/emu-radio/build/*.rpm,
-            **/emu-radio/build/*.deb,
-            **/emu-radio/ns3-packages/*.rpm,
-            **/emu-radio/ns3-packages/*.deb
-
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-android-sdk-merge-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-android-sdk-build.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/IGetAndroid/app/build/outputs/apk/release/*.apk,
-            **/MetisForwarderAndroid/app/build/outputs/apk/release/*.apk,
-            **/HttpServer/app/build/outputs/apk/release/*.apk,
-            **/build_armv7-a/viper/viper-armv7//build/outputs/apk/*.apk
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-android-sdk-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - os-parameter:
+          description: Operating system.
           os: '{os}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-android-sdk-build.sh
 
     publishers:
-      - archive:
-          # yamllint disable-line rule:line-length
-          artifacts: >
-            **/iGetAndroid/app/build/outputs/apk/*.apk,
-            **/MetisForwarder/app/build/outputs/apk/*.apk,
-            **/build/viper/viper-armv7//build/outputs/apk/*.apk
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-vicn-merge-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: 'master'
           branch: '{branch}'
-      - os-parameter:
-          os: '{os}'
+          lftools-version: '{lftools-version}'
       - maven-project-parameter:
           maven: 'mvn33-new'
       - maven-exec:
           maven-version: 'mvn33-new'
+      - os-parameter:
+          description: Operating system.
+          os: '{os}'
       - repo-name-parameter:
           repo-name: '{repo-stream-part}.{repo-os-part}'
-      - stream-parameter:
-          stream: 'master'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - config-file-provider:
           files:
             - file-id: '.packagecloud'
           - ../scripts/packagecloud_push.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/build/*.rpm,
-            **/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish
 
 - job-template:
     name: 'cicn-vicn-verify-{stream}-{os}'
       artifactNumToKeep: '{build-artifact-num-to-keep}'
 
     parameters:
-      - project-parameter:
+      - lf-infra-parameters:
           project: '{project}'
-      - gerrit-parameter:
+          stream: ''
           branch: '{branch}'
+          lftools-version: '{lftools-version}'
       - os-parameter:
+          description: Operating system.
           os: '{os}'
+      - string:
+          name: ARCHIVE_ARTIFACTS
+          default: '{archive-artifacts}'
+          description: Artifacts to archive to the logs server.
 
     scm:
       - gerrit-trigger-scm:
           branch: '{branch}'
 
     builders:
+      - lf-infra-pre-build
       - shell:
           !include-raw-escape:
           - include-raw-cicn-vicn-build.sh
 
     publishers:
-      - archive:
-          artifacts: >
-            **/build/*.rpm,
-            **/build/*.deb
-          allow-empty: 'true'
-          fingerprint: false
-          only-if-success: true
-          default-excludes: false
-      - fdio-infra-shiplogs:
-          maven-version: 'mvn33-new'
+      - lf-infra-publish