File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 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
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+ }
You can’t perform that action at this time.
0 commit comments