This file contains hidden or 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
<?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> |
This file contains hidden or 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 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"() {} |
This file contains hidden or 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 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"() { |
This file contains hidden or 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
<?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> |
This file contains hidden or 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
[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 --- |