Skip to content

Instantly share code, notes, and snippets.

@werne2j
werne2j / pom.xml
Last active October 16, 2019 13:39
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>jenkins-shared-library</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<description>Testing a Pipeline Shared Library with Spock</description>
<repositories>
import com.homeaway.devtools.jenkins.testing.JenkinsPipelineSpecification
class BuildJavascriptAppSpec extends JenkinsPipelineSpecification {
def buildJavascriptApp = null
def setup() {
buildJavascriptApp = loadPipelineScriptForTest("vars/buildJavascriptApp.groovy")
}
def "[buildJavascriptApp] will run npm publish if deploy is true"() {}
import com.homeaway.devtools.jenkins.testing.JenkinsPipelineSpecification
class BuildJavascriptAppSpec extends JenkinsPipelineSpecification {
def buildJavascriptApp = null
def setup() {
buildJavascriptApp = loadPipelineScriptForTest("vars/buildJavascriptApp.groovy")
}
def "[buildJavascriptApp] will run npm publish if deploy is true"() {
@werne2j
werne2j / pom.xml
Last active March 23, 2022 04:25
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>jenkins-shared-library</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<description>Testing a Pipeline Shared Library with Spock</description>
<repositories>
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] Building shared-library 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ shared-library ---
[INFO]
[INFO] --- gmavenplus-plugin:1.6.1:addSources (groovy) @ shared-library ---