cloud-infra: Switch engine lint jenkins jobs to tox
[infra/cicd.git] / jjb / cloud-infra / cloud-infra-engine-verify-lint.yaml
index 01f3c42ef6112dadc7bd40b7ca71e937e89c337d..e766c01737f1906cf52fe285d66c0d3889143912 100644 (file)
           disabled: false
 
     lint-type:
-      - ansible-lint:
-          successful: false
-          failed: false
-          unstable: false
-          notbuilt: false
-      - yaml-lint:
-          successful: true
-          failed: true
-          unstable: true
-          notbuilt: true
-      - shellcheck:
-          successful: true
-          failed: true
-          unstable: true
-          notbuilt: true
+      - ansible-lint
+      - yamllint
+      - shellcheck
 
     jobs:
       - 'cloud-infra-verify-engine-{lint-type}-{stream}'
           project: '{project}'
           branch: '{branch}'
       - nordix-gerrit-parameters
+      - string:
+          name: LINT_TYPE
+          default: '{lint-type}'
+          description: 'Lint type to run'
 
     properties:
       - logrotate
               file-paths:
                 - compare-type: 'ANT'
                   pattern: '**'
-          skip-vote:
-            successful: '{obj:successful}'
-            failed: '{obj:failed}'
-            unstable: '{obj:unstable}'
-            notbuilt: '{obj:notbuilt}'
           custom-url: '* $JOB_NAME $BUILD_URL'
 
     builders:
-      - 'cloud-infra-{lint-type}-macro'
+      - 'cloud-infra-lint-macro'
 
 # vim: set ts=2 sw=2 expandtab: