Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
Y1812-iOS-jenkinsFile
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ccc.chu
Y1812-iOS-jenkinsFile
Commits
1deb07cb
Commit
1deb07cb
authored
May 21, 2018
by
jxjxwujie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
init
parent
4f70c48c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
0 deletions
+69
-0
Jenkinsfile
+69
-0
No files found.
Jenkinsfile
0 → 100755
View file @
1deb07cb
pipeline
{
agent
any
stages
{
stage
(
'html'
)
{
parallel
{
stage
(
'html'
)
{
steps
{
sh
'mkdir -p html'
dir
(
path:
'html'
)
{
git
(
branch:
'master'
,
url:
'git@116.62.143.3:Y1812-uDoorlockHS/web-business.git'
,
credentialsId:
'jenkins-generated-ssh-key'
)
}
dir
(
path:
'html/dev'
)
{
sh
'''npm install webpack@4.5.0 --registry=http://registry.npm.taobao.org
npm install ugen-components ugen-I18N-webpack-plugin --registry=http://114.215.135.7:7001
npm install --registry=http://registry.npm.taobao.org
webpack --env=release'''
}
}
}
stage
(
'android'
)
{
steps
{
sh
'mkdir -p android'
dir
(
path:
'android'
)
{
git
(
url:
'git@116.62.143.3:Y1812-uDoorlockHS/Android.git'
,
branch:
'master'
,
credentialsId:
'jenkins-generated-ssh-key'
)
}
dir
(
path:
'android/app/src/main/assets/apps/doorlock/www'
)
{
sh
'''pwd
ls -l'''
}
}
}
}
}
stage
(
'cp'
)
{
steps
{
sh
'cp -R html/web/resources html/web/lib html/web/view android/app/src/main/assets/apps/doorlock/www'
dir
(
path:
'android/app/src/main/assets/apps/doorlock/www'
)
{
sh
'ls -l'
}
}
}
stage
(
'build'
)
{
steps
{
dir
(
path:
'android'
)
{
sh
'''$ANDROID_HOME/tools/bin/sdkmanager --licenses
gradle clea assembleRelease --stacktrace'''
}
}
}
stage
(
'output'
)
{
steps
{
archiveArtifacts
'android/app/build/outputs/apk/*'
}
}
}
environment
{
JAVA_HOME
=
"${tool 'java8'}"
NODEJS_HOME
=
"${tool 'node'}"
GRADLE_HOME
=
"${tool 'gradle4.6'}"
PATH
=
"${GRADLE_HOME}/bin:${NODEJS_HOME}/bin:${JAVA_HOME}/bin:${PATH}"
}
}
\ No newline at end of file
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