diff options
author | Deepshikha khandelwal <dkhandel@redhat.com> | 2018-10-31 17:19:06 +0530 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2018-11-09 06:44:20 +0000 |
commit | ae9b1ece95d4b2f8a5fe38c79c259ad616099a5b (patch) | |
tree | 5f50248c28f1dc0185cfb446739568729b0f7438 /build-gluster-org/jobs/python-lint.yml | |
parent | 97dda0acc3c20bdae100e6daffa1ce03e52b4ac3 (diff) |
Smoke job for python validation using tools like flake8 and pylint
- pylint: Output will be archived in pylint-check.txt. This job will
fail if there's any [W]arning, [C]onvention, [R]efactor, [E]rror,
[F]atal message type.
- flake8: Output will be archived in flake8-check.txt
This is a non-voting smoke job for now. The count of pylint and flake8 issue is
too huge as mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=1584992
Change-Id: Idbe0ebfdbbf9ac955c26bd4befc4b3cf9f62d395
Diffstat (limited to 'build-gluster-org/jobs/python-lint.yml')
-rw-r--r-- | build-gluster-org/jobs/python-lint.yml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/build-gluster-org/jobs/python-lint.yml b/build-gluster-org/jobs/python-lint.yml new file mode 100644 index 0000000..a039343 --- /dev/null +++ b/build-gluster-org/jobs/python-lint.yml @@ -0,0 +1,60 @@ +- job: + name: python-lint + node: smoke7 + description: python validation of code using pylint and flake8 + project-type: freestyle + concurrent: true + + scm: + - glusterfs + + properties: + - discard-after-x: + x: 30 + - one-build-per-node + + triggers: + - gerrit: + trigger-on: + - patchset-created-event: + exclude-drafts: false + exclude-trivial-rebase: false + exclude-no-code-change: false + - draft-published-event + - comment-added-contains-event: + comment-contains-value: "recheck smoke" + server-name: review.gluster.org_for-smoke-jobs + skip-vote: + failed: true + unstable: true + notbuilt: true + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'glusterfs' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**' + + parameters: + - string: + default: refs/heads/master + description: 'For review 12345 and patch set 6, this will be refs/changes/45/12345/6. Default: Tip of master' + name: GERRIT_REFSPEC + - string: + default: master + description: 'Name of the branch you want to build from. We usually build from master' + name: GERRIT_BRANCH + + builders: + - shell: !include-raw: ../scripts/python-lint.sh + + publishers: + - archive: + allow-empty: true + artifacts: "./python-lint/*" + default-excludes: true + fingerprint: false + only-if-success: false + + wrappers: + - timestamps |