Commit 603edaec authored by 张英杰's avatar 张英杰

Merge branch 'feature/add_jenkins_file' into 'master'

Feature/add jenkins file

See merge request !2
parents 80eb276b 03ff9c38
@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}"
}
}
}
......@@ -12,7 +12,7 @@
###############################################################################
__author__ = "Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com>"
__version__ = "0.11-dev"
__version__ = "0.12-dev"
from setuptools import setup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment