Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
arpeggio-gm
Project
Project
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
backend
arpeggio-gm
Commits
603edaec
Commit
603edaec
authored
Jan 05, 2021
by
张英杰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/add_jenkins_file' into 'master'
Feature/add jenkins file See merge request
!2
parents
80eb276b
03ff9c38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
1 deletion
+45
-1
Jenkinsfile
Jenkinsfile
+44
-0
setup.py
setup.py
+1
-1
No files found.
Jenkinsfile
0 → 100644
View file @
603edaec
@Library
(
'gm-pipeline-library'
)
_
pipeline
{
agent
any
options
{
// Console output add timestamps
timestamps
()
// Disallow concurrent executions of the Pipeline
disableConcurrentBuilds
()
// On failure, retry the entire Pipeline the specified number of times.
retry
(
1
)
}
parameters
{
choice
(
name:
'cache'
,
choices:
[
''
,
'--no-cache'
],
description:
'docker build 是否使用cache,默认使用,不使用为--no-cache'
)
}
stages
{
stage
(
'打包'
)
{
steps
{
script
{
sh
'python setup.py sdist'
}
}
}
stage
(
'发布Pypi'
)
{
steps
{
script
{
sh
'twine upload --skip-existing -r coding-pypi dist/* '
}
}
}
}
post
{
always
{
dingNotify
"after"
,
"${currentBuild.currentResult}"
}
}
}
setup.py
View file @
603edaec
...
...
@@ -12,7 +12,7 @@
###############################################################################
__author__
=
"Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com>"
__version__
=
"0.1
1
-dev"
__version__
=
"0.1
2
-dev"
from
setuptools
import
setup
...
...
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