Skip to content

Commit

Permalink
mono test
Browse files Browse the repository at this point in the history
Signed-off-by: Darin Pope <[email protected]>
  • Loading branch information
darinpope committed Nov 12, 2021
1 parent c4fb2a3 commit 5eb6c2c
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
21 changes: 21 additions & 0 deletions vars/monoRepoBackendApiPipeline.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
def call(Map config=[:]) {
pipeline {
agent {
docker {
image "${pipelineParams.agent}"
}
}
stages {
stage('Build REST API') {
steps {
dir("${pipelineParams.directory}") {
sh '''
go version
cat api.txt
'''
}
}
}
}
}
}
26 changes: 26 additions & 0 deletions vars/monoRepoBackendWebPipeline.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
def call(body) {
def pipelineParams= [:]
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = pipelineParams
body()

pipeline {
agent {
docker {
image "${pipelineParams.agent}"
}
}
stages {
stage('Build Web') {
steps {
dir("${pipelineParams.directory}") {
sh '''
mvn --version
cat web.txt
'''
}
}
}
}
}
}
27 changes: 27 additions & 0 deletions vars/monoRepoFrontendPipeline.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
def call(body) {
def pipelineParams= [:]
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = pipelineParams
body()

pipeline {
agent {
docker {
image "${pipelineParams.agent}"
}
}
stages {
stage('Build Frontend') {
steps {
dir("${pipelineParams.directory}") {
sh '''
npm --version
node --version
cat frontend.txt
'''
}
}
}
}
}
}

0 comments on commit 5eb6c2c

Please sign in to comment.