Skip to content

Commit

Permalink
Setting up the first steps of the Jenkins pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
baamenabar committed Feb 5, 2019
1 parent 565108d commit 7c20a7c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
13 changes: 0 additions & 13 deletions docker-compose.debug.yml

This file was deleted.

10 changes: 0 additions & 10 deletions docker-compose.yml

This file was deleted.

18 changes: 18 additions & 0 deletions pipelines/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Scripted pipeline
node {
def commit_id
stage('Preparation') {
checkout scm
sh "git rev-parse --short HEAD > .git/commit-id"
commit_id = readFile('.git/commit-id').trim()
def ciContainer = docker.build("flyup:${commit_id}", .)
}
stage('Lint') {
sh 'echo ...Linting ... coming soon'
}
stage('Test') {
ciContainer.inside {
sh 'npm test'
}
}
}
5 changes: 5 additions & 0 deletions pipelines/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Pipelines config files

Here you can find all the pipeline config files

This project is intended to be built with multiple CD/CI pipeline technologies.

0 comments on commit 7c20a7c

Please sign in to comment.