Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
atom.workspace.observeTextEditors (editor) -> | |
editor.onDidSave -> | |
if editor.getPath().slice(-3) is '.os' | |
if editor.getEncoding() is 'utf8' and editor.getText().charCodeAt(0) isnt 65279 | |
editor.setText String.fromCharCode(65279) + editor.getText() | |
editor.save() |
#!/usr/bin/env node | |
'use strict'; | |
/* | |
#!/bin/bash | |
# | |
# Wrapper script for git mergetool | |
# This requires ~/.gitconfig file to have | |
# the following (adjusting for paths): | |
# | |
# [merge] |
#!/bin/bash | |
# Wrapper script for git mergetool | |
# This requires the .gitconfig file to have: | |
# - mergetool entry for "wdiff"; | |
# - mergetool entry for "fw_def"; | |
# These merge tool entries must both specify the | |
# cmd field. The command to call this script: | |
# [mergetool "merge_wrapper"] | |
# cmd = $HOME/merge-wrapper \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\" | |
# Locate this script in your $HOME |
plugins.txt -crlf | |
run.sh -crlf |
#!/bin/sh | |
# simple installer for Ubuntu 14.04 https://bitbucket.org/EvilBeaver/1script/wiki/Home | |
echo 'Starting wgeter latest develops' | |
wget --continue http://oscript.io/downloads/night-build/latest.zip | |
mkdir -p ./osc-engine/bin | |
mkdir -p ./osc-engine/lib |
#!/bin/sh | |
# simple installer for Ubuntu 14.04 https://bitbucket.org/EvilBeaver/1script/wiki/Home | |
echo 'Starting wgeter latest develops' | |
# wget --continue http://oscript.io/downloads/night-build/latest.zip | |
wget http://oscript.io/downloads/night-build/deb | |
sudo dpkg -i deb |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
#!/bin/sh | |
export WORKSPACE=`pwd` | |
echo $WORKSPACE | |
if test -d $WORKSPACE/build/ib; then rm -rf $WORKSPACE/build/ib; fi | |
mkdir $WORKSPACE/build -p | |
mkdir $WORKSPACE/build/ib -p | |
if test -d $WORKSPACE/test-reports; then rm -rf $WORKSPACE/test-reports; fi |
[string[]] $urls = {} | |
$urls += "https://github.com/silverbulleters/vanessa-behavior.git" | |
$urls += "https://github.com/silverbulleters/vanessa-bdd-editor.git" | |
$urls += "https://github.com/silverbulleters/oscript-docker.git" | |
$urls += "https://github.com/silverbulleters/vanessa-stack-commons.git" | |
$urls += "https://github.com/silverbulleters/oscript-epf-merge.git" | |
$urls += "https://github.com/silverbulleters/vanessa-bootstrap.git" | |
$urls += "https://github.com/silverbulleters/vanessa-unpack.git" | |
$urls += "https://github.com/silverbulleters/vanessa-fixture-gen.git" | |
$urls += "https://github.com/silverbulleters/vanessa-epic-managment.git" |
# у 1С нет x86_64 версии компонента V83.COMConnector, поэтому проще запустить x86 версию PowerShell | |
if ($env:Processor_Architecture -ne "x86") { | |
write-warning "Запуск PowerShell x86..." | |
if ($myInvocation.Line) { | |
&"$env:WINDIR\syswow64\windowspowershell\v1.0\powershell.exe" -NonInteractive -NoProfile $myInvocation.Line | |
} else { | |
&"$env:WINDIR\syswow64\windowspowershell\v1.0\powershell.exe" -NonInteractive -NoProfile -file "$($myInvocation.InvocationName)" $args | |
} | |
exit $lastexitcode | |
} |