From ff7226835e882df2230d61880472361150890dd0 Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 7 Aug 2019 16:31:24 +0200 Subject: [PATCH 01/16] Update Jenkinsfile --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index a229fa51..17e94184 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1 +1,9 @@ +node('maven') { + stage('pre-commit') { + sh ''' + curl https://pre-commit.com/install-local.py | python - + pre-commit + ''' + } +} buildPlugin() From bc01a324d803a3e7af29d50d3906a2b649ae523f Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 7 Aug 2019 16:36:19 +0200 Subject: [PATCH 02/16] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 17e94184..6768503f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -node('maven') { +node('python') { stage('pre-commit') { sh ''' curl https://pre-commit.com/install-local.py | python - From 87d7808f287e78c3ead52dc059b92108e92dd949 Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 7 Aug 2019 16:38:27 +0200 Subject: [PATCH 03/16] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6768503f..35abef72 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -node('python') { +node('linux') { stage('pre-commit') { sh ''' curl https://pre-commit.com/install-local.py | python - From 5c794d78e2ee5269b1a29279a2334184d24db834 Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 7 Aug 2019 16:39:50 +0200 Subject: [PATCH 04/16] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 35abef72..31caa562 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,7 @@ node('linux') { stage('pre-commit') { sh ''' curl https://pre-commit.com/install-local.py | python - - pre-commit + /home/jenkins/bin/pre-commit ''' } } From d68eb1b7d1c69b1d67b3b0afaf38871d2cd4898c Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 7 Aug 2019 16:46:57 +0200 Subject: [PATCH 05/16] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 31caa562..4f3c1c41 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -node('linux') { +node('linux-8') { stage('pre-commit') { sh ''' curl https://pre-commit.com/install-local.py | python - From d00eb749627c959ac7131f4970cb179e9ece337a Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 7 Aug 2019 16:47:41 +0200 Subject: [PATCH 06/16] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4f3c1c41..c7e66988 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,7 @@ -node('linux-8') { +node('linux') { stage('pre-commit') { sh ''' + which git curl https://pre-commit.com/install-local.py | python - /home/jenkins/bin/pre-commit ''' From ed981d4fd5649c5b42daf47058ad65ab87e30cdd Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 7 Aug 2019 16:52:16 +0200 Subject: [PATCH 07/16] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c7e66988..e0c7d25c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ node('linux') { sh ''' which git curl https://pre-commit.com/install-local.py | python - - /home/jenkins/bin/pre-commit + /home/jenkins/bin/pre-commit run --all-files ''' } } From 294f99a3e7926197ef5820e34b81e0526beefaaa Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 7 Aug 2019 17:00:02 +0200 Subject: [PATCH 08/16] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e0c7d25c..5772a2f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ node('linux') { stage('pre-commit') { sh ''' - which git + git --version curl https://pre-commit.com/install-local.py | python - /home/jenkins/bin/pre-commit run --all-files ''' From 84663a2a20ed7277a2aef655da848616cca71276 Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 7 Aug 2019 17:00:45 +0200 Subject: [PATCH 09/16] Create .pre-commit-config.yaml --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..f4989e74 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.1.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - id: name-tests-test From c0de66edee851558cc9d2dfa668c6ab7ccf6de74 Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Thu, 8 Aug 2019 11:54:55 +0200 Subject: [PATCH 10/16] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 5772a2f2..4cae3e6c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,6 @@ node('linux') { stage('pre-commit') { + checkout scm sh ''' git --version curl https://pre-commit.com/install-local.py | python - From 18abfe32abf46ef1c43e53850c76291b861ef26f Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Thu, 8 Aug 2019 13:58:33 +0200 Subject: [PATCH 11/16] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f4989e74..b0547905 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,4 +4,3 @@ repos: hooks: - id: end-of-file-fixer - id: trailing-whitespace - - id: name-tests-test From 4e56fc74648c1444ef9be6b5d58b606c590cf116 Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Thu, 8 Aug 2019 14:02:57 +0200 Subject: [PATCH 12/16] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4cae3e6c..6d46a9eb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,6 @@ -node('linux') { +node('linux') { stage('pre-commit') { - checkout scm + infra.checkout(null) sh ''' git --version curl https://pre-commit.com/install-local.py | python - From ad2d2d33c45103d183b7192ead0662164aa64cd1 Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Tue, 13 Aug 2019 17:17:13 +0200 Subject: [PATCH 13/16] Update Jenkinsfile --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6d46a9eb..aba2b1b6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,9 @@ node('linux') { stage('pre-commit') { infra.checkout(null) - sh ''' - git --version + sh '''#!/bin/sh -eux curl https://pre-commit.com/install-local.py | python - - /home/jenkins/bin/pre-commit run --all-files + "$HOME/bin/pre-commit" run --all-files ''' } } From 18838f69a578d3eb20c3b44b13ef62fe54fcaf0d Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 14 Aug 2019 12:20:43 +0200 Subject: [PATCH 14/16] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index aba2b1b6..55225a81 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,6 @@ node('linux') { stage('pre-commit') { - infra.checkout(null) + infra.checkout() sh '''#!/bin/sh -eux curl https://pre-commit.com/install-local.py | python - "$HOME/bin/pre-commit" run --all-files From d060511516ec6f76c30ae2037f054fd2d6344540 Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 14 Aug 2019 16:05:31 +0200 Subject: [PATCH 15/16] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 55225a81..ca606821 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ node('linux') { stage('pre-commit') { infra.checkout() - sh '''#!/bin/sh -eux + sh ''' curl https://pre-commit.com/install-local.py | python - "$HOME/bin/pre-commit" run --all-files ''' From 69d1475f97b9976485f8ebef5eba97c898d8455b Mon Sep 17 00:00:00 2001 From: jakub-bochenski Date: Wed, 14 Aug 2019 16:20:09 +0200 Subject: [PATCH 16/16] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ca606821..55225a81 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ node('linux') { stage('pre-commit') { infra.checkout() - sh ''' + sh '''#!/bin/sh -eux curl https://pre-commit.com/install-local.py | python - "$HOME/bin/pre-commit" run --all-files '''