Gist for https://youtu.be/41uUsWQjKRw
def animal="cat"
node {
stage('hello') {
echo animal
animal = "dog"
}
Gist for https://youtu.be/41uUsWQjKRw
def animal="cat"
node {
stage('hello') {
echo animal
animal = "dog"
}
yarn info |
# Get input channel number for BlackHole device | |
ffmpeg -f avfoundation -list_devices true -i "" | |
# Record 2 seconds from i.e. input channel 0 | |
ffmpeg -loglevel debug -f avfoundation -i :0 -t 2 test.mp3 | |
https://github.com/ExistentialAudio/BlackHole |
Gradle does not like the $ sign innside the doubel quotes | |
So it is better to enclose the content of the scripts in ''' ''' instead of """ """ | |
or use ${varName} instear of $varName |
npm install -g yarn@berry | |
yarn --immutable |
https://sdkman.io |
How to connect to paused pod running IT tests | |
make sure no other process is running on 5606 locally | |
Find the id of the pod and run | |
kubectl -n jenkins get pods | |
kubectl -n jenkins port-forward pr-investigate-pr-17131-12-fc1z0-3nzrp-1r2n4 5606:5606 |
Instead of
class A {
private p1: string;
constructor(p1: string) {
this.p1 = p1;
}
}
response = driver.execute_async_script(""" | |
var done = arguments[0]; | |
function reqListener () { | |
done(this.responseText); | |
} | |
var oReq = new XMLHttpRequest(); | |
oReq.addEventListener("load", reqListener); | |
oReq.open("POST", "https://s12.volatile.siren.io/investigate-access-control/api/v1/auth/info"); |
const testHEAD = function(url) { | |
var xmlhttp = new XMLHttpRequest(); | |
xmlhttp.open("HEAD", url, true); | |
xmlhttp.onreadystatechange=function() { | |
if(xmlhttp.readyState==4) { | |
console.log(xmlhttp.getAllResponseHeaders()); | |
} | |
} | |
xmlhttp.send(null); | |
} |