-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setting up the first steps of the Jenkins pipeline
- Loading branch information
1 parent
565108d
commit 7c20a7c
Showing
4 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
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' | ||
} | ||
} | ||
} |
This file contains 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
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. |