Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
patzn-cloud-web-back-soil
Commits
2c875af4
Commit
2c875af4
authored
Mar 13, 2021
by
zhangmengqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加jenkins配置文件
parent
620538d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
jenkinsfile
jenkinsfile
+43
-0
No files found.
jenkinsfile
0 → 100644
View file @
2c875af4
pipeline
{
agent
any
stages
{
stage
(
'git pull'
)
{
steps
{
echo
'=== Build web-soil Begin'
checkout
([
$class
:
'GitSCM'
,
branches:
[[
name:
'dev'
]],
doGenerateSubmoduleConfigurations:
false
,
extensions:
[[
$class
:
'CleanBeforeCheckout'
]],
submoduleCfg:
[],
userRemoteConfigs:
[[
credentialsId:
'patzn-zmq'
,
url:
'http://git.patzn.com/wangweidong/pt-cloud-service-soil-web.git'
]]])
echo
'=== Build web-soil End'
}
}
stage
(
'Npm run build'
)
{
steps
{
nodejs
(
'node14'
){
sh
'''
node --version
npm --version
yarn --version
yarn config set registry https://registry.npm.taobao.org
yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
yarn
NODE_ENV=zhyf STATIC_URL=http://static.lims.com nuxt build
'''
}
}
}
stage
(
'Docker build and push'
)
{
steps
{
echo
'=== Build docker image Begin'
sh
"""
docker build -t patzn-web-soil:2.0 .
docker login -u patzn -p Qw123qwe https://192.168.0.140
docker tag patzn-web-soil:2.0 192.168.0.140/zhyf/web-soil:1.0
docker push 192.168.0.140/zhyf/web-soil:1.0
"""
echo
'=== Build docker image End'
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment