From c105d75d2c5cc63666391a22dbc91b3c36293237 Mon Sep 17 00:00:00 2001 From: Dustin Specker Date: Fri, 5 Mar 2021 15:07:25 -0600 Subject: [PATCH] chore(zuul): lint job now enforces linux line endings Change-Id: I6e557b690782fc479d361eb7664a62003927676e --- playbooks/airship-zuul-linter.yaml | 6 ++++++ tools/gate/jarvis/5G-SA-core/amf/.gitreview | 6 +++--- tools/gate/jarvis/5G-SA-core/ausf/.gitreview | 6 +++--- tools/gate/jarvis/5G-SA-core/mongodb/.gitreview | 6 +++--- tools/gate/jarvis/5G-SA-core/nrf/.gitreview | 6 +++--- tools/gate/jarvis/5G-SA-core/pcf/.gitreview | 6 +++--- tools/gate/jarvis/5G-SA-core/smf/.gitreview | 6 +++--- tools/gate/jarvis/5G-SA-core/udm/.gitreview | 6 +++--- tools/gate/jarvis/5G-SA-core/udr/.gitreview | 6 +++--- 9 files changed, 30 insertions(+), 24 deletions(-) diff --git a/playbooks/airship-zuul-linter.yaml b/playbooks/airship-zuul-linter.yaml index 782c6632..95040306 100644 --- a/playbooks/airship-zuul-linter.yaml +++ b/playbooks/airship-zuul-linter.yaml @@ -29,3 +29,9 @@ failed_when: result.stdout != "" args: chdir: "{{ zuul.project.src_dir }}" + - name: Check for Windows line endings + command: grep --files-with-match --recursive -I --binary --exclude-dir=.git --perl-regexp '\r$' . + register: line_endings_result + failed_when: line_endings_result.rc == 0 + args: + chdir: "{{ zuul.project.src_dir }}" diff --git a/tools/gate/jarvis/5G-SA-core/amf/.gitreview b/tools/gate/jarvis/5G-SA-core/amf/.gitreview index 6e4adb16..b229dda9 100644 --- a/tools/gate/jarvis/5G-SA-core/amf/.gitreview +++ b/tools/gate/jarvis/5G-SA-core/amf/.gitreview @@ -1,4 +1,4 @@ -[gerrit] -host=gerrit.jarvis.local -port=29418 +[gerrit] +host=gerrit.jarvis.local +port=29418 project=amf.git \ No newline at end of file diff --git a/tools/gate/jarvis/5G-SA-core/ausf/.gitreview b/tools/gate/jarvis/5G-SA-core/ausf/.gitreview index 3d3a005e..592a36cc 100644 --- a/tools/gate/jarvis/5G-SA-core/ausf/.gitreview +++ b/tools/gate/jarvis/5G-SA-core/ausf/.gitreview @@ -1,4 +1,4 @@ -[gerrit] -host=gerrit.jarvis.local -port=29418 +[gerrit] +host=gerrit.jarvis.local +port=29418 project=ausf.git \ No newline at end of file diff --git a/tools/gate/jarvis/5G-SA-core/mongodb/.gitreview b/tools/gate/jarvis/5G-SA-core/mongodb/.gitreview index 4323ae36..c19fab9b 100644 --- a/tools/gate/jarvis/5G-SA-core/mongodb/.gitreview +++ b/tools/gate/jarvis/5G-SA-core/mongodb/.gitreview @@ -1,4 +1,4 @@ -[gerrit] -host=gerrit.jarvis.local -port=29418 +[gerrit] +host=gerrit.jarvis.local +port=29418 project=mongodb.git \ No newline at end of file diff --git a/tools/gate/jarvis/5G-SA-core/nrf/.gitreview b/tools/gate/jarvis/5G-SA-core/nrf/.gitreview index f6c75ec7..e33a3a26 100644 --- a/tools/gate/jarvis/5G-SA-core/nrf/.gitreview +++ b/tools/gate/jarvis/5G-SA-core/nrf/.gitreview @@ -1,4 +1,4 @@ -[gerrit] -host=gerrit.jarvis.local -port=29418 +[gerrit] +host=gerrit.jarvis.local +port=29418 project=nrf.git \ No newline at end of file diff --git a/tools/gate/jarvis/5G-SA-core/pcf/.gitreview b/tools/gate/jarvis/5G-SA-core/pcf/.gitreview index ef34ef41..1bd51a87 100644 --- a/tools/gate/jarvis/5G-SA-core/pcf/.gitreview +++ b/tools/gate/jarvis/5G-SA-core/pcf/.gitreview @@ -1,4 +1,4 @@ -[gerrit] -host=gerrit.jarvis.local -port=29418 +[gerrit] +host=gerrit.jarvis.local +port=29418 project=pcf.git \ No newline at end of file diff --git a/tools/gate/jarvis/5G-SA-core/smf/.gitreview b/tools/gate/jarvis/5G-SA-core/smf/.gitreview index e9a8c0c3..2a5c98ed 100644 --- a/tools/gate/jarvis/5G-SA-core/smf/.gitreview +++ b/tools/gate/jarvis/5G-SA-core/smf/.gitreview @@ -1,4 +1,4 @@ -[gerrit] -host=gerrit.jarvis.local -port=29418 +[gerrit] +host=gerrit.jarvis.local +port=29418 project=smf.git \ No newline at end of file diff --git a/tools/gate/jarvis/5G-SA-core/udm/.gitreview b/tools/gate/jarvis/5G-SA-core/udm/.gitreview index 45f158d2..069e6f75 100644 --- a/tools/gate/jarvis/5G-SA-core/udm/.gitreview +++ b/tools/gate/jarvis/5G-SA-core/udm/.gitreview @@ -1,4 +1,4 @@ -[gerrit] -host=gerrit.jarvis.local -port=29418 +[gerrit] +host=gerrit.jarvis.local +port=29418 project=udm.git \ No newline at end of file diff --git a/tools/gate/jarvis/5G-SA-core/udr/.gitreview b/tools/gate/jarvis/5G-SA-core/udr/.gitreview index 7aa9bebe..1e3304df 100644 --- a/tools/gate/jarvis/5G-SA-core/udr/.gitreview +++ b/tools/gate/jarvis/5G-SA-core/udr/.gitreview @@ -1,4 +1,4 @@ -[gerrit] -host=gerrit.jarvis.local -port=29418 +[gerrit] +host=gerrit.jarvis.local +port=29418 project=udr.git \ No newline at end of file