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/bash | |
# | |
# git-mv-with-history -- move/rename file or folder, with history. | |
# | |
# Moving a file in git doesn't track history, so the purpose of this | |
# utility is best explained from the kernel wiki: | |
# | |
# Git has a rename command git mv, but that is just for convenience. | |
# The effect is indistinguishable from removing the file and adding another | |
# with different name and the same content. |
@echo off | |
echo Автоматическая распаковка дистрибутивов конфигураций 7.7 | |
echo -------------------------------------------------------- | |
echo (c) 2012, Decker, andrewks | |
rem http://dml.compkaluga.ru/forum/index.php?showtopic=54199 | |
rem необходим распаковщик STIX | |
rem (http://www.kannegieser.net/veit/quelle/stix_src.arj) | |
rem более шустрая версия для Windows 7 и выше | |
rem создаёт символические ссылки вместо копирования файлов | |
rem mklink требует админа |
# --------------- раздел переменных ----------------------------------- | |
New-Variable -Name log_file -Value "C:\1C\1c_close.log" -Option Constant | |
New-Variable -Name server -Value "server1c" -Option Constant #сервер 1С | |
New-Variable -Name admin_user -Value "" -Option Constant # пользователь - администратор кластера | |
New-Variable -Name admin_pass -Value "" -Option Constant # пароль администратора кластера | |
New-Variable -Name client -Value $env:computername.ToUpper() -Option Constant # имя хоста текущей машины | |
$Title = @" | |
Автоматическое завершение сеансов на сервере 1С. |
//1. НЕ работает группировка Procedure/EndProcedure, Function/EndFunction | |
//2. Не опознаются ключевые слова "Not", "In", "False", "True" | |
//3. Не опознается объект CommandLineArguments (АргументыКоманднойСтроки) | |
//4. Не опознается метод Count() (Количество()) у массивов | |
//5. RunApp глотает кавычки: | |
//cmdLine = | |
//"C:\Snegopat 20\fossil.exe" clone "http://snegopat.ru:9004" "C:\Snegopat 20\repo\core.fossil" | |
// | |
//а командная строка процесса = | |
//"C:\Snegopat 20\fossil.exe" clone http://snegopat.ru:9004 C:\Snegopat 20\repo\core.fossil |
#!/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 |
#!/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 | |
unzip -o latest.zip -d osc-engine |
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() |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
[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" |
Вот ссылка на видеозапись: | |
https://drive.google.com/open?id=0BzrHpvxfLxBibXkxQnQzdGhySU0 | |
TDD - https://ru.wikipedia.org/wiki/%D0%A0%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B0_%D1%87%D0%B5%D1%80%D0%B5%D0%B7_%D1%82%D0%B5%D1%81%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5 | |
Example mapping - https://cucumber.io/blog/2015/12/08/example-mapping-introduction | |
BDD: | |
* wiki - https://en.wikipedia.org/wiki/Behavior-driven_development | |
* cucumber и gherkin - https://cucumber.io/ | |
* примеры и советы по написанию на gherkin - http://docs.behat.org/en/v3.0/guides/1.gherkin.html | |
Silverbulleters, LLC - http://silverbulleters.org/ |