Skip to content

Commit 8f54e41

Browse files
committed
MCU8MASS-544: check for library dependency error
1 parent 8d5e1b3 commit 8f54e41

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
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+
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ paragraph=Supports HTTP(S), MQTT(S), Low Power and more. Dependent on AVR-IoT MC
77
category=Communication
88
url=https://iot.microchip.com/docs
99
architectures=*
10-
depends=mcp9808, veml3328
10+
depends=AVR-IoT MCP9808, veml3328
1111
precompiled=true

0 commit comments

Comments
 (0)