-
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.
- Loading branch information
Gopal Saini
committed
Nov 15, 2018
1 parent
4fa4b0c
commit 8577cc4
Showing
1 changed file
with
29 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,10 +1,38 @@ | ||
pipeline { | ||
agent { docker { image 'node:6.3' } } | ||
agent { | ||
docker { image 'node:10.13' } | ||
} | ||
|
||
environment { | ||
DISABLE_AUTH = 'true' | ||
DB_ENGINE = 'sqlite' | ||
} | ||
|
||
stages { | ||
stage('build') { | ||
steps { | ||
sh 'npm --version' | ||
sh 'printenv' | ||
} | ||
} | ||
} | ||
|
||
post { | ||
always { | ||
echo 'This will always run' | ||
} | ||
success { | ||
echo 'This will run only if successful' | ||
} | ||
failure { | ||
echo 'This will run only if failed' | ||
} | ||
unstable { | ||
echo 'This will run only if the run was marked as unstable' | ||
} | ||
changed { | ||
echo 'This will run only if the state of the Pipeline has changed' | ||
echo 'For example, if the Pipeline was previously failing but is now successful' | ||
} | ||
} | ||
} |