Skip to content

Commit 66a0108

Browse files
committed
Added pipe-runner command to GitWorker
1 parent aa2cd69 commit 66a0108

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

build.gradle

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply from: script('requireJavaVersion7')
22
apply from: script('dependencies')
3+
apply plugin: 'distribution'
34

45
description = 'Pipeline --the Continuous Delivery (CD) tool, which we and all stakeholders of the CD pipeline love to use'
56
group = 'org.pipelinelabs.pipeline'
@@ -16,10 +17,30 @@ subprojects {
1617
version = rootProject.version
1718
}
1819

20+
distributions {
21+
main {
22+
contents {
23+
into('bin') {
24+
from { project(':listener').startScripts.outputs.files }
25+
from { project(':runner').startScripts.outputs.files }
26+
fileMode = 0755
27+
}
28+
into('lib') {
29+
def libs = []
30+
libs << project(':listener').configurations.runtime - project(':runner').configurations.runtime
31+
libs << project(':runner').configurations.runtime
32+
from libs
33+
from project(':listener').jar
34+
from project(':runner').jar
35+
}
36+
}
37+
}
38+
}
39+
1940
String createProjectGroupId(Project root, Project project) {
2041
root.group << '.' << project.name.replaceAll('-', '.')
2142
}
2243

2344
File script(String name) {
2445
project.file("gradle/${name}.gradle")
25-
}
46+
}

subprojects/listener/src/main/groovy/org/pipelinelabs/pipeline/listen/core/GitWorker.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ class GitWorker implements Managed {
2929
def dir = Files.createTempDirectory("pipeline/")
3030
List envProps = null
3131
"git clone ${event.url}".execute(envProps, dir.toFile())
32-
// TODO: Call pipe-runner
32+
"pipe-runner run project.pipe".execute(envProps, dir.toFile())
3333
}
3434
}

0 commit comments

Comments
 (0)