24
24
sh ' make -C mpy-cross clean all'
25
25
}
26
26
27
- for (board in boards_to_build) {
27
+ for (board in boards_to_build) {
28
28
stage(board) {
29
29
def parallelSteps = [:]
30
30
for (variant in variants_to_build) {
@@ -105,7 +105,7 @@ def testBuild(short_name) {
105
105
}
106
106
sh ' python esp32/tools/pypic.py --port ' + device_name + ' --enter'
107
107
sh ' python esp32/tools/pypic.py --port ' + device_name + ' --exit'
108
- }
108
+ }
109
109
}
110
110
}
111
111
@@ -116,21 +116,20 @@ def get_version() {
116
116
117
117
def get_firmware_name (short_name ) {
118
118
node {
119
- def node_info = sh (script : ' cat ${JENKINS_HOME}/pycom-ic.conf || exit 0' , returnStdout : true ). trim()
120
- def matcher = node_info =~ short_name + ' :(.+):.*'
119
+ def node_info = sh (script : ' cat ${JENKINS_HOME}/pycom-ic.conf || exit 0' , returnStdout : true ). trim()
120
+ def matcher = node_info =~ short_name + ' :(.+):.*'
121
121
matcher ? matcher[0 ][1 ] : " WiPy"
122
122
}
123
123
}
124
124
125
125
def get_remote_name (short_name ) {
126
126
node {
127
- def node_info = sh (script : ' cat ${JENKINS_HOME}/pycom-ic.conf || exit 0' , returnStdout : true ). trim()
128
- def matcher = node_info =~ short_name + ' :.*:(.+)'
127
+ def node_info = sh (script : ' cat ${JENKINS_HOME}/pycom-ic.conf || exit 0' , returnStdout : true ). trim()
128
+ def matcher = node_info =~ short_name + ' :.*:(.+)'
129
129
matcher ? matcher[0 ][1 ] : " RPI3"
130
130
}
131
131
}
132
132
133
133
def get_device_name (short_name ) {
134
134
return " /dev/tty.usbmodemPy" + short_name + " "
135
135
}
136
-
0 commit comments