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 f2d13b8 commit 7e2cc30Copy full SHA for 7e2cc30
Dockerfile
@@ -0,0 +1,5 @@
1
+FROM node:20-alpine
2
+WORKDIR /app
3
+COPY . .
4
+RUN yarn install --production
5
+CMD ["node", "./src/index.js"]
Jenkinsfile
@@ -0,0 +1,25 @@
+pipeline {
+ agent any
+
+ stages {
+ stage('build') {
6
+ steps {
7
+ echo "build Pipeline"
8
+ sh '''
9
+ docker build -t getting-start-app .
10
+ docker run -d --name node getting-start-app
11
+ '''
12
+ }
13
14
15
+ stage('test') {
16
17
+ echo "test pipeline"
18
19
+ docker exec -it node sh -c 'npm test jest'
20
21
22
23
24
25
+}
0 commit comments