This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@NonCPS | |
def executeCommandWithFiles(command) { | |
def changeLogSets = currentBuild.changeSets | |
def filesString = "" | |
for (int i = 0; i < changeLogSets.size(); i++) { | |
def entries = changeLogSets[i].items | |
for (int j = 0; j < entries.length; j++) { | |
def entry = entries[j] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func simpleTestResponse(t *testing.T, want string, url string, method string) { | |
request, _ := http.NewRequest(method, url, nil) | |
response := httptest.NewRecorder() | |
PlayerServer(response, request) | |
got := response.Body.String() | |
if got != want { | |
t.Errorf("got '%s', want '%s'", got, want) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
f := func(int x) { | |
fmt.Printf("x is %d\n", x) | |
} | |
y := 2 | |
x = y | |
f(y) | |
} |