Skip to content

Commit 61e4a5f

Browse files
committed
Install linter in Jenkins
1 parent bede9f4 commit 61e4a5f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Jenkinsfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ void resultNotification(message) {
116116

117117
void lint() {
118118
sh '''
119+
echo Installing golangci-lint
120+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.49.0
119121
make lint saveOutput=true
120122
echo helm template lint output: ;echo; helm-lint-output.txt; echo all tests lint output: ;echo; test-lint-output.txt
121123
'''

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ lint:
6868
helm lint --with-subcharts charts/ $(if $(saveOutput), > helm-lint-output.txt,)
6969

7070
@echo "> Linting all tests....."
71-
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.49.0 golangci-lint run $(if $(saveOutput), > test-lint-output.txt,)
71+
golangci-lint run $(if $(saveOutput), > test-lint-output.txt,)
7272

7373
## ---------- Testing Tasks ----------
7474

0 commit comments

Comments
 (0)