pipeline {
agent any
parameters {
string(name: 'PERSON', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?')
}
stages {
stage('Example') {
steps {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program Project2; | |
{$APPTYPE CONSOLE} | |
uses | |
SysUtils; | |
type | |
TLocString = record | |
Key, Value: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program programThatUsesFreedObject; | |
{$APPTYPE CONSOLE} | |
uses | |
Classes, | |
SysUtils; | |
var | |
tmpSL: TStringList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MMWIN:CLASSCOPY | |
unit uLazyCursorHelper; | |
interface | |
uses | |
Controls; | |
type | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type | |
TScopeExitNotifier = class(TInterfacedObject) | |
private | |
FProc: TProc; | |
public | |
constructor Create(const AProc: TProc); | |
destructor Destroy; override; | |
end; | |
constructor TScopeExitNotifier.Create(const AProc: TProc); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task killChromeDrivers(type:Exec) { | |
commandLine 'taskkill', '/f', '/im', 'chromedri*' | |
ignoreExitValue = true | |
} |
• В конце добавить 3 таска
-
name: wait 2 minutes for webserver to start shell: 'curl --head --silent "https://{{ inventory_hostname }}/"' register: result ignore_errors: True async: 120 poll: 1 failed_when: false
-
name: fail if response is not 200