Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
// источник http://forum.infostart.ru/forum24/topic124865/message1517253 | |
Функция ПроверитьСтроку(Строка, Фасет) | |
Чтение = Новый ЧтениеXML; | |
Чтение.УстановитьСтроку( | |
"<Model xmlns=""http://v8.1c.ru/8.1/xdto"" xmlns:xs=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""Model""> | |
|<package targetNamespace=""sample-my-package""> | |
|<valueType name=""testtypes"" base=""xs:string""> | |
|<pattern>" + Фасет + "</pattern> | |
|</valueType> |
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" |