-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJenkinsfile
55 lines (52 loc) · 1.47 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/groovy
pipeline {
agent any
tools {
nodejs 'nodeJs'
}
stages {
stage("Checkout") {
steps {
checkout scm
}
}
stage("Environment") {
steps {
sh 'git --version'
echo "Branch: ${env.BRANCH_NAME}"
sh 'printenv'
}
}
stage("install packages") {
steps {
echo 'install packages...'
sh 'docker build -t acme/app1 -f Dockerfile .'
//sh 'npm install --g yarn'
//sh 'npm install --g lerna'
//sh 'rm -rf node_modules'
//sh 'git pull origin master'
//sh 'git submodule foreach git pull origin master'
//sh 'lerna bootstrap'
}
}
stage("test") {
steps {
echo 'testing application...'
echo 'pesquisar sobre teste sem interface'
}
}
stage("build") {
steps {
echo 'building application...'
//sh 'pwd'
//sh 'yarn workspaces run build'
}
}
stage("deploy app1") {
steps {
echo 'deployng application...'
//sh 'docker cp /var/jenkins_home/workspace/ci-teste_master/packages/poc-micro-frontend-app1/build stoic_johnson:/usr/share/nginx/html'
}
}
}
}