Skip to content

Commit 30516cf

Browse files
authored
Jenkins: Drop redundant targets (#969)
1 parent 1f07d7e commit 30516cf

File tree

2 files changed

+0
-74
lines changed

2 files changed

+0
-74
lines changed

.ci/arduino.groovy

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -102,37 +102,6 @@ def buildMySensorsGw(config, sketches, String key) {
102102
}
103103
}
104104

105-
def buildArduinoNano(config, sketches, String key) {
106-
def fqbn = '-fqbn arduino:avr:nano -prefs build.f_cpu=16000000 -prefs build.mcu=atmega328p'
107-
config.pr.setBuildStatus(config, 'PENDING', 'Toll gate (Arduino Nano - '+key+')', 'Building...', '${BUILD_URL}flowGraphTable/')
108-
try {
109-
for (sketch = 0; sketch < sketches.size(); sketch++) {
110-
if (sketches[sketch].path != config.library_root+'examples/GatewayESP8266/GatewayESP8266.ino' &&
111-
sketches[sketch].path != config.library_root+'examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino' &&
112-
sketches[sketch].path != config.library_root+'examples/GatewayESP8266OTA/GatewayESP8266OTA.ino' &&
113-
sketches[sketch].path != config.library_root+'examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino') {
114-
buildArduino(config, fqbn, sketches[sketch].path, key+'_ArduinoNano')
115-
}
116-
}
117-
} catch (ex) {
118-
echo "Build failed with: "+ ex.toString()
119-
config.pr.setBuildStatus(config, 'FAILURE', 'Toll gate (Arduino Nano - '+key+')', 'Build error', '${BUILD_URL}')
120-
throw ex
121-
} finally {
122-
parseWarnings(key+'_ArduinoNano')
123-
}
124-
if (currentBuild.currentResult == 'UNSTABLE') {
125-
config.pr.setBuildStatus(config, 'ERROR', 'Toll gate (Arduino Nano - '+key+')', 'Warnings found', '${BUILD_URL}warnings2Result/new')
126-
if (config.is_pull_request) {
127-
error 'Termiated due to warnings found'
128-
}
129-
} else if (currentBuild.currentResult == 'FAILURE') {
130-
config.pr.setBuildStatus(config, 'FAILURE', 'Toll gate (Arduino Nano - '+key+')', 'Build error', '${BUILD_URL}')
131-
} else {
132-
config.pr.setBuildStatus(config, 'SUCCESS', 'Toll gate (Arduino Nano - '+key+')', 'Pass', '')
133-
}
134-
}
135-
136105
def buildArduinoUno(config, sketches, String key) {
137106
def fqbn = '-fqbn arduino:avr:uno -prefs build.f_cpu=16000000 -prefs build.mcu=atmega328p'
138107
config.pr.setBuildStatus(config, 'PENDING', 'Toll gate (Arduino Uno - '+key+')', 'Building...', '${BUILD_URL}flowGraphTable/')
@@ -164,37 +133,6 @@ def buildArduinoUno(config, sketches, String key) {
164133
}
165134
}
166135

167-
def buildArduinoPro(config, sketches, String key) {
168-
def fqbn = '-fqbn arduino:avr:pro -prefs build.f_cpu=8000000 -prefs build.mcu=atmega328p'
169-
config.pr.setBuildStatus(config, 'PENDING', 'Toll gate (Arduino Pro/Mini - '+key+')', 'Building...', '${BUILD_URL}flowGraphTable/')
170-
try {
171-
for (sketch = 0; sketch < sketches.size(); sketch++) {
172-
if (sketches[sketch].path != config.library_root+'examples/GatewayESP8266/GatewayESP8266.ino' &&
173-
sketches[sketch].path != config.library_root+'examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino' &&
174-
sketches[sketch].path != config.library_root+'examples/GatewayESP8266OTA/GatewayESP8266OTA.ino' &&
175-
sketches[sketch].path != config.library_root+'examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino') {
176-
buildArduino(config, fqbn, sketches[sketch].path, key+'_ArduinoPro')
177-
}
178-
}
179-
} catch (ex) {
180-
echo "Build failed with: "+ ex.toString()
181-
config.pr.setBuildStatus(config, 'FAILURE', 'Toll gate (Arduino Pro/Mini - '+key+')', 'Build error', '${BUILD_URL}')
182-
throw ex
183-
} finally {
184-
parseWarnings(key+'_ArduinoPro')
185-
}
186-
if (currentBuild.currentResult == 'UNSTABLE') {
187-
config.pr.setBuildStatus(config, config, 'ERROR', 'Toll gate (Arduino Pro/Mini - '+key+')', 'Warnings found', '${BUILD_URL}warnings2Result/new')
188-
if (config.is_pull_request) {
189-
error 'Termiated due to warnings found'
190-
}
191-
} else if (currentBuild.currentResult == 'FAILURE') {
192-
config.pr.setBuildStatus(config, 'FAILURE', 'Toll gate (Arduino Pro/Mini - '+key+')', 'Build error', '${BUILD_URL}')
193-
} else {
194-
config.pr.setBuildStatus(config, 'SUCCESS', 'Toll gate (Arduino Pro/Mini - '+key+')', 'Pass', '')
195-
}
196-
}
197-
198136
def buildArduinoMega(config, sketches, String key) {
199137
def fqbn = '-fqbn arduino:avr:mega -prefs build.f_cpu=16000000 -prefs build.mcu=atmega2560'
200138
config.pr.setBuildStatus(config, 'PENDING', 'Toll gate (Arduino Mega - '+key+')', 'Building...', '${BUILD_URL}flowGraphTable/')

.ci/pipeline.groovy

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,9 @@ def call(Closure body) {
109109
stage('ESP8266 (tests)') {
110110
arduino.buildEsp8266(config, config.tests, 'Tests')
111111
}
112-
stage('ArduinoNano (tests)') {
113-
arduino.buildArduinoNano(config, config.tests, 'Tests')
114-
}
115112
stage('ArduinoUno (tests)') {
116113
arduino.buildArduinoUno(config, config.tests, 'Tests')
117114
}
118-
stage('ArduinoProMini (tests)') {
119-
arduino.buildArduinoPro(config, config.tests, 'Tests')
120-
}
121115
stage('ArduinoMega (tests)') {
122116
arduino.buildArduinoMega(config, config.tests, 'Tests')
123117
}
@@ -145,15 +139,9 @@ def call(Closure body) {
145139
stage('ESP8266 (examples)') {
146140
arduino.buildEsp8266(config, config.examples, 'Examples')
147141
}
148-
stage('ArduinoNano (examples)') {
149-
arduino.buildArduinoNano(config, config.examples, 'Examples')
150-
}
151142
stage('ArduinoUno (examples)') {
152143
arduino.buildArduinoUno(config, config.examples, 'Examples')
153144
}
154-
stage('ArduinoProMini (examples)') {
155-
arduino.buildArduinoPro(config, config.examples, 'Examples')
156-
}
157145
stage('ArduinoMega (examples)') {
158146
arduino.buildArduinoMega(config, config.examples, 'Examples')
159147
}

0 commit comments

Comments
 (0)