Skip to content

Commit c828464

Browse files
Merge pull request #6 from FromDoppler/DE-971-new-jenkins-compatibility
DE-971 - Compatibility with the new Jenkins
2 parents 177ba7f + 589c8e4 commit c828464

7 files changed

Lines changed: 15 additions & 11 deletions

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ build
77
Dockerfile*
88
Jenkinsfile
99
.doppler-ci
10+
doppler-jenkins-ci.groovy
1011

1112
# Allow copying encrypted secrets only (SOPS)
1213
*.[sS]ecret.*

.doppler-ci

Lines changed: 0 additions & 1 deletion
This file was deleted.

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ block_comment_end = */
1717
max_line_length = 220
1818

1919
# Unset for binary and generated files
20-
[{**.svg,**.png,**/obj/**,**/bin/**,.vscode/**,**/Properties/launchSettings.json,*.[sS]ecret.*,yarn.lock,.doppler-ci,build/**}]
20+
[{**.svg,**.png,**/obj/**,**/bin/**,.vscode/**,**/Properties/launchSettings.json,*.[sS]ecret.*,yarn.lock,.doppler-ci,*.groovy,build/**}]
2121
charset = unset
2222
end_of_line = unset
2323
insert_final_newline = unset

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ yarn.lock
2121
package-lock.json
2222
[eE]ncrypted.[sS]ecret.*
2323
*.key
24-
.doppler-ci
24+
doppler-jenkins-ci.groovy
2525
/build
2626
*.env
2727
*.env.*
File renamed without changes.

gitlint.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# It is only here for reference and backward compatibility, the source of truth
4-
# is Jenkinsfile
4+
# is doppler-jenkins-ci.groovy
55

66
# Stop script on NZEC
77
set -e
@@ -20,9 +20,13 @@ export MSYS2_ARG_CONV_EXCL="*"
2020

2121
# See more information in https://jorisroovers.com/gitlint
2222

23-
docker run --ulimit nofile=1024 \
24-
-v "$(pwd)/.git":/repo/.git \
25-
-v "$(pwd)/.gitlint":/repo/.gitlint \
26-
jorisroovers/gitlint:0.18.0 \
27-
--config /repo/.gitlint \
28-
--commits origin/main..HEAD
23+
if [ -x "$(command -v gitlint)" ]; then
24+
gitlint --config .gitlint --commits origin/main..HEAD
25+
else
26+
docker run --ulimit nofile=1024 \
27+
-v "$(pwd)/.git":/repo/.git \
28+
-v "$(pwd)/.gitlint":/repo/.gitlint \
29+
jorisroovers/gitlint:0.18.0 \
30+
--config /repo/.gitlint \
31+
--commits origin/main..HEAD
32+
fi

verify-w-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# It is only here for reference and backward compatibility, the source of truth
4-
# is Jenkinsfile
4+
# is doppler-jenkins-ci.groovy
55

66
# Stop script on NZEC
77
set -e

0 commit comments

Comments
 (0)