Skip to content

Instantly share code, notes, and snippets.

View scherler's full-sized avatar

Thorsten Scherler scherler

View GitHub Profile
node {
echo 'first Branch start'
sh 'sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 30; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx; xxx'
echo 'first Branch end'
}
node {
stage 'Stage 2'
echo 'Stage 2'
sh 'sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 30; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx; xxx'
}
node {
stage 'deploy'
node {
stage 'Stage 1a'
echo 'Stage 1a'
sh 'sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 30; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx; xxx'
stage 'Stage 2'
echo 'Stage 2'
sh 'sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 30; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx;sleep 3; echo `date` xxx; xxx'
}
node {
@scherler
scherler / ux-32.md
Last active April 26, 2016 12:32
Questions around current implementation

blueocean-web/src/main/js/main.jsx

ExtensionPoint.registerExtensionPoint("jenkins.main.routes", (extensions) => {
    startApp();
});

That means we only can register one that extensionPoint and no other since the startApp(); can only be run once, correct?

@scherler
scherler / Runs.jsx
Last active April 20, 2016 13:16
Admin - make it fail because of ref - stories will show the sample, blueocean not
import SampleIcon from './stories/SampleIcon.jsx';
<td>
<a onClick={open} ref="xxx">
<StatusIndicator result={resultRun} />
</a>
+ <SampleIcon />
</td>
@scherler
scherler / cb.zsh-theme
Last active November 30, 2015 23:27
cb.zsh-theme
setopt prompt_subst
function get_RAM {
local FREE_RAM=`free -m | awk '{if (NR==3) print $4}' | xargs -i echo 'scale=1;{}/1000' | bc`
local TOTAL_RAM=`free -m | awk '{if (NR==2) print $2}'| xargs -i echo 'scale=1;{}/1000' | bc`
echo "%{$fg_bold[red]%}$FREE_RAM"
}
PROMPT='%(?,%{$fg_bold[green]%},%{$fg_bold[red]%})◎ % '