From 9a1b25b0b5343563ae9f1da9c49f863fc3740d0e Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Tue, 22 May 2018 16:39:26 +1000 Subject: [PATCH] Add support for policy-violations for view columns Change-Id: I61a08cc4586119466b04f86497c330873e5d582d Signed-off-by: Anil Belur --- jenkins_jobs/modules/view_list.py | 3 +++ tests/views/fixtures/view_list001.xml | 1 + tests/views/fixtures/view_list001.yaml | 1 + 3 files changed, 5 insertions(+) diff --git a/jenkins_jobs/modules/view_list.py b/jenkins_jobs/modules/view_list.py index 945fb31b5..cb5cd4c23 100644 --- a/jenkins_jobs/modules/view_list.py +++ b/jenkins_jobs/modules/view_list.py @@ -245,6 +245,9 @@ COLUMN_DICT = { 'priority-sorter': 'jenkins.advancedqueue.PrioritySorterJobColumn', 'build-filter': 'hudson.views.BuildFilterColumn', 'desc': 'jenkins.branch.DescriptionColumn', + 'policy-violations': + 'com.sonatype.insight.ci.hudson.QualityColumn ' + 'plugin="sonatype-clm-ci"', } DEFAULT_COLUMNS = ['status', 'weather', 'job', 'last-success', 'last-failure', 'last-duration', 'build-button'] diff --git a/tests/views/fixtures/view_list001.xml b/tests/views/fixtures/view_list001.xml index db14dfb50..45ce29c4e 100644 --- a/tests/views/fixtures/view_list001.xml +++ b/tests/views/fixtures/view_list001.xml @@ -29,6 +29,7 @@ + true false diff --git a/tests/views/fixtures/view_list001.yaml b/tests/views/fixtures/view_list001.yaml index 9d83879b9..35dc639be 100644 --- a/tests/views/fixtures/view_list001.yaml +++ b/tests/views/fixtures/view_list001.yaml @@ -24,5 +24,6 @@ columns: - priority-sorter - build-filter - desc + - policy-violations recurse: true status-filter: false