Meridio: New PR and periodic jobs
[infra/cicd.git] / jjb / nsm / meridio-periodic.yaml
similarity index 54%
rename from jjb/nsm/nordix-nsm-meridio-periodic.yaml
rename to jjb/nsm/meridio-periodic.yaml
index 5101ddbbff6b9033a6367dc28960f017e82bf13b..9ffe7e9d8e36fc44e2cf940994feb8ce4f77a366 100644 (file)
 # ============LICENSE_END=========================================================
 
 - project:
-    name: 'nsm-meridio-periodic'
+    name: 'meridio-periodic'
 
-    project: 'nsm-meridio-periodic'
+    project: 'meridio-periodic'
 
-    stream:
-      - 'master':
-          branch: 'master'
-
-    image-name:
-      - ctraffic
-      - ipam
-      - load-balancer
-      - nsp
-      - proxy
-      - tapa
-      - frontend
+    # NOTE (fdegir): auth-id is taken from Jenkins Global Configuration
+    # by clicking Auth ID button for the desired GitHub Server API URL
+    # Please ensure you are looking at GitHub Pull Request Builder part
+    # of global configuration and not to GitHub Server configuration
+    ghprb-auth-id: 'cdfd2452-a9e2-41a3-8ee6-9058512b4aff'
 
     jobs:
-      - 'nordix-nsm-meridio-{image-name}-periodic-build-{stream}'
+      - 'meridio-periodic'
 
 - job-template:
-    name: 'nordix-nsm-meridio-{image-name}-periodic-build-{stream}'
-
+    name: 'meridio-periodic'
+    project-type: pipeline
     disabled: '{obj:disabled}'
 
     concurrent: true
 
-    node: nordix-nsm-build-ubuntu1804
-
     properties:
       - github:
           url: https://github.com/Nordix/Meridio
           description: JJB configured parameter to identify GitHub Organization
       - string:
           name: PROJECT
-          default: 'meridio'
+          default: 'Meridio'
           description: JJB configured PROJECT parameter to identify a Nordix GitHub project
       - string:
-          name: IMAGE_NAME
-          default: '{image-name}'
-          description: Meridio image to verify build
+          name: IMAGE_NAMES
+          default: 'load-balancer proxy tapa ipam nsp ctraffic frontend'
+          description: Images to compile
       - string:
           name: IMAGE_VERSION
           default: 'latest'
-          description: Meridio image version to build with
+          description: Version of the images
       - string:
-          name: IMAGE_REGISTRY
-          default: 'registry.nordix.org/cloud-native/$PROJECT'
-          description: Meridio image version to build with
+          name: E2E_ENABLED
+          default: "false"
+          description: Is E2E Tests enabled?
+      - string:
+          name: GIT_PROJECT
+          default: "https://github.com/Nordix/Meridio.git"
+          description: Git URL of the project
+      - string:
+          name: CURRENT_BRANCH
+          default: "master"
+          description: Current Git branch
+      - string:
+          name: DEFAULT_BRANCH
+          default: "master"
+          description: default branch
       - string:
           name: BUILD_STEPS
-          default: 'build tag push'
+          default: "build tag push"
           description: Steps to run during build
-
-    scm:
-      - git:
-          url: 'https://github.com/$GITHUB_ORGANIZATION/$PROJECT.git'
-          branches:
-            - master
-          timeout: 15
-          wipe-workspace: true
+      - string:
+          name: IMAGE_REGISTRY
+          default: 'registry.nordix.org/cloud-native/meridio'
+          description: Meridio image regsitry
 
     triggers:
       - pollscm:
           cron: '@midnight'
 
-    wrappers:
-      - build-timeout:
-          timeout: 30
-      - nordixinfra-harbor-creds-wrapper
-      - mask-passwords
-
-    builders:
-      - shell:
-          !include-raw: ./scripts/build.sh
+    dsl: 
+      !include-raw-escape: Jenkinsfile
 
 # vim: set ts=2 sw=2 expandtab: