We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c2f485 commit 0e145eeCopy full SHA for 0e145ee
Jenkinsfile
@@ -1,12 +1,20 @@
1
-node {
2
- stage('Build') {
3
- docker.image('node:16-buster-slim').withRun('-p 3000:3000') {
4
- sh 'npm install'
+pipeline {
+ agent {
+ docker {
+ image 'node:16-buster-slim'
5
+ args '-p 3000:3000'
6
}
7
- stage('Test') {
8
- docker.image('node:16-buster-slim').inside('-p 3000:3000') {
9
- sh './jenkins/scripts/test.sh'
+ stages {
+ stage('Build') {
10
+ steps {
11
+ sh 'npm install'
12
+ }
13
14
+ stage('Test') {
15
16
+ sh './jenkins/scripts/test.sh'
17
18
19
-}
20
+}
0 commit comments