@@ -102,37 +102,6 @@ def buildMySensorsGw(config, sketches, String key) {
102
102
}
103
103
}
104
104
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
-
136
105
def buildArduinoUno (config , sketches , String key ) {
137
106
def fqbn = ' -fqbn arduino:avr:uno -prefs build.f_cpu=16000000 -prefs build.mcu=atmega328p'
138
107
config. pr. setBuildStatus(config, ' PENDING' , ' Toll gate (Arduino Uno - ' + key+ ' )' , ' Building...' , ' ${BUILD_URL}flowGraphTable/' )
@@ -164,37 +133,6 @@ def buildArduinoUno(config, sketches, String key) {
164
133
}
165
134
}
166
135
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
-
198
136
def buildArduinoMega (config , sketches , String key ) {
199
137
def fqbn = ' -fqbn arduino:avr:mega -prefs build.f_cpu=16000000 -prefs build.mcu=atmega2560'
200
138
config. pr. setBuildStatus(config, ' PENDING' , ' Toll gate (Arduino Mega - ' + key+ ' )' , ' Building...' , ' ${BUILD_URL}flowGraphTable/' )
0 commit comments