我正在使用github.com/sparrc/go-ping
库,而我将其发布在gerrit中,jenkins发布了-1
并抱怨cannot find package "github.com/sparrc/go-ping" in any of:
我怎样才能克服这个?
答案 0 :(得分:0)
假设您的Jenkins服务器中已正确设置go get github.com/sparrc/go-ping
。在进行构建之前,您必须执行function removeEmptyRows() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("settings");
var data = sheet.getRange("A2:D").getValues();
var newData = new Array();
for(i in data){
var row = data[i];
var empty = false;
for(i in data){
if(row.toString() == ",,,"){
empty = true;
}
}
if(!empty){
newData.push(row);
}
sheet.getRange(2, 6, newData.length, newData[0].length).setValues(newData);
};
。