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
pipeline { | |
agent any | |
tools { | |
jdk "11" | |
} | |
stages { | |
stage("Use maven") { |
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
pipeline { | |
agent any | |
tools { | |
jdk "11" | |
} | |
stages { | |
stage("Use java") { |
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
import org.openqa.selenium.chrome.ChromeDriver | |
import org.openqa.selenium.chrome.ChromeOptions | |
import org.openqa.selenium.firefox.FirefoxDriver | |
import org.openqa.selenium.firefox.FirefoxOptions | |
import org.testcontainers.containers.BrowserWebDriverContainer | |
baseUrl = "https://michael-kutz.de" | |
driver = { | |
new ChromeDriver() |
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
import io.github.bonigarcia.wdm.WebDriverManager | |
import org.openqa.selenium.Platform | |
import org.openqa.selenium.chrome.ChromeDriver | |
import org.openqa.selenium.chrome.ChromeOptions | |
import org.openqa.selenium.firefox.FirefoxDriver | |
import org.openqa.selenium.firefox.FirefoxOptions | |
import org.openqa.selenium.remote.CapabilityType | |
import org.openqa.selenium.remote.DesiredCapabilities | |
import org.testcontainers.containers.BrowserWebDriverContainer | |
/* |
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
#!/usr/bin/env groovy | |
@Grab("org.gebish:geb-core:2.3.1") | |
@Grab("io.github.bonigarcia:webdrivermanager:3.4.0") | |
@Grab("org.seleniumhq.selenium:selenium-java:3.141.59") | |
@Grab("ch.qos.logback:logback-classic:1.2.3") | |
import geb.Browser | |
import geb.Configuration | |
import groovy.cli.OptionField | |
import groovy.cli.picocli.CliBuilder |
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
import static com.cloudbees.plugins.credentials.CredentialsScope.GLOBAL | |
import com.cloudbees.plugins.credentials.domains.Domain | |
import com.cloudbees.plugins.credentials.SystemCredentialsProvider | |
import hudson.util.Secret | |
import org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl | |
import com.cloudbees.plugins.credentials.CredentialsStore | |
// Configure the global Slack token as a secret text credential | |
CredentialsStore credentialsStore = SystemCredentialsProvider.getInstance().getStore() |
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
#!/usr/bin/env groovy | |
// see https://jenkins.io/doc/book/pipeline/syntax/ | |
pipeline { | |
agent any | |
parameters { | |
booleanParam(name: "RELEASE", defaultValue: false) | |
} |
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
#!/usr/bin/env groovy | |
// see https://jenkins.io/doc/book/pipeline/syntax/ | |
pipeline { | |
agent any | |
parameters { | |
booleanParam(name: "RELEASE", defaultValue: false) | |
} |
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
#!/usr/bin/env groovy | |
// see https://jenkins.io/doc/book/pipeline/syntax/ | |
pipeline { | |
agent any | |
parameters { | |
booleanParam(name: "RELEASE", defaultValue: false) | |
} |
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
#!/usr/bin/env groovy | |
// see https://jenkins.io/doc/book/pipeline/syntax/ | |
pipeline { | |
agent any | |
parameters { | |
booleanParam(name: "RELEASE", defaultValue: false) | |
} |