Skip to content

Commit 16c7b1f

Browse files
committed
Merge branch 'develop' into MCU8MASS-543-rename-dependency
2 parents 25b6257 + 8f54e41 commit 16c7b1f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Jenkinsfilek8s

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@
5353

5454
stage('linter') {
5555
steps {
56-
sh 'arduino-lint --library-manager submit --compliance strict'
56+
sh 'arduino-lint --compliance strict'
57+
script {
58+
env.DEP_ERROR = getDependencyError()
59+
if (env.DEP_ERROR != '') {
60+
error("LP048 error: depends field item(s) not found")
61+
}
62+
}
5763
}
5864
}
5965

@@ -138,4 +144,9 @@
138144
def initializeGitForDeployment() {
139145
execute("git config --global user.email 'microchip@microchip.com'")
140146
execute("git config --global user.name 'Microchip Technology'")
141-
}
147+
}
148+
149+
String getDependencyError() {
150+
return sh(script: "! arduino-lint --compliance strict --format json | grep LP048", returnStdout: true)?.trim()
151+
// return sh(script: "! arduino-lint --compliance strict --format json | grep LP048", returnStdout: true)?.trim()
152+
}

0 commit comments

Comments
 (0)