I hereby claim:
- I am ftclausen on github.
- I am ftclausen (https://keybase.io/ftclausen) on keybase.
- I have a public key ASAe4Q4yjdm6jeLJIgcWfY6K0pxqWk8vSLROpSyh25g5Vgo
To claim this, I am signing this object:
# For a more realistic simulation see https://stackoverflow.com/questions/50165079/mocking-jenkins-pipeline-steps | |
def readFile( Map args ) { | |
def file = args.file | |
def encoding = args.file ?: 'UTF-8' | |
return new File( file ).text | |
} | |
def sh( String command ) { |
# List all files in all restic snapshots | |
repo="sftp:example.com:/path/to_repo" | |
passwd_file="/tmp/pw" | |
restic -r $repo --password-file $passwd_file snapshots -c | awk '/^[0-9a-f]{8}/ {print $1}' | while read -r snap; do | |
restic -r $repo --password-file $passwd ls $snap | |
done |
#!/usr/bin/env bash | |
# Friedrich "Fred" Clausen - [email protected] | |
source_directories=("/var/tmp/inc_test" "/var/tmp/inc test 2") | |
remote="sftp:md:tmp/inc_test" | |
passwd="/tmp/pw" | |
report_location="/tmp" | |
log="$(mktemp -t backup_report_)" | |
sftp_log="$(mktemp)" |
// -*- mode: groovy -*- | |
// vim: set filetype=groovy : | |
node( 'some_node' ) { | |
stage( "Phase 1" ) { | |
sshagent( credentials: [ 'some_creds' ] ) { | |
checkout scm | |
def lastSuccessfulCommit = getLastSuccessfulCommit() | |
def currentCommit = commitHashForBuild( currentBuild.rawBuild ) | |
if (lastSuccessfulCommit) { |
I hereby claim:
To claim this, I am signing this object:
var maxIterations = 3; | |
var currentIteration = 0; | |
var pythagorasTree = function(string, subIteration) { | |
// Because processing JS does not seem to like default parameters | |
if (!subIteration) { | |
currentIteration += 1; | |
} | |
if (currentIteration > maxIterations) { | |
println("Reached max iterations"); |
// KA recursion homework assignment. Does a poor man's tunnel animation. | |
// Also at https://gist.github.com/ftclausen/9d42b2511a82f6d59085e70d204cf5b7 | |
// drawShape() will draw a series of circles, each one | |
// smaller than the last until we hit a radius of 7 or less | |
var drawShape = function(x, y, radius) { | |
// The base case - quit when we have a radius of 7 | |
if (radius <= 7) { | |
return; | |
} |
Connecting to computer.example.com | |
Checking if Java exists | |
java -version returned 1.8.0. | |
Installing the Jenkins slave service | |
Copying jenkins-slave.exe | |
Copying slave.jar | |
Copying jenkins-slave.xml | |
Registering the service | |
Starting the service | |
Waiting for the service to become ready |
diff --git a/subprojects/ide/src/main/groovy/org/gradle/plugins/ide/eclipse/EclipsePlugin.groovy b/subprojects/ide/src/main/groovy/org/gradle/plugins/ide/eclipse/EclipsePlugin.groovy | |
index e6356d3..d7eecf7 100644 | |
--- a/subprojects/ide/src/main/groovy/org/gradle/plugins/ide/eclipse/EclipsePlugin.groovy | |
+++ b/subprojects/ide/src/main/groovy/org/gradle/plugins/ide/eclipse/EclipsePlugin.groovy | |
@@ -43,7 +43,6 @@ class EclipsePlugin extends IdePlugin { | |
static final String ECLIPSE_JDT_TASK_NAME = "eclipseJdt" | |
private final Instantiator instantiator | |
- EclipseModel model | |