add comments to build.py
This commit is contained in:
parent
be217035f2
commit
67b18318ca
1 changed files with 14 additions and 0 deletions
14
build.py
14
build.py
|
@ -8,6 +8,7 @@ PROJECT_ROOT_PATH = "."
|
||||||
|
|
||||||
version = "1.8.5-dev"
|
version = "1.8.5-dev"
|
||||||
|
|
||||||
|
|
||||||
@init
|
@init
|
||||||
def initialize(project):
|
def initialize(project):
|
||||||
input = {
|
input = {
|
||||||
|
@ -33,18 +34,30 @@ def initialize(project):
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def patch(project):
|
def patch(project):
|
||||||
|
"""
|
||||||
|
updates version to next patch level, creates a tag, creates new SNAPSHOT version,
|
||||||
|
commits primary build file (build.gradle) and pushes to remote
|
||||||
|
"""
|
||||||
linttest(project, "PATCH")
|
linttest(project, "PATCH")
|
||||||
release(project)
|
release(project)
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def minor(project):
|
def minor(project):
|
||||||
|
"""
|
||||||
|
updates version to next minor level, creates a tag, creates new SNAPSHOT version,
|
||||||
|
commits primary build file (build.gradle) and pushes to remote
|
||||||
|
"""
|
||||||
linttest(project, "MINOR")
|
linttest(project, "MINOR")
|
||||||
release(project)
|
release(project)
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def major(project):
|
def major(project):
|
||||||
|
"""
|
||||||
|
updates version to next major level, creates a tag, creates new SNAPSHOT version,
|
||||||
|
commits primary build file (build.gradle) and pushes to remote
|
||||||
|
"""
|
||||||
linttest(project, "MAJOR")
|
linttest(project, "MAJOR")
|
||||||
release(project)
|
release(project)
|
||||||
|
|
||||||
|
@ -68,6 +81,7 @@ def tag(project):
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def publish_artifacts(project):
|
def publish_artifacts(project):
|
||||||
|
""" creates a release in <release_artifact_server_url> and uploads artifacts """
|
||||||
build = get_devops_build(project)
|
build = get_devops_build(project)
|
||||||
print("PROTECTED_TOKEN_EXAMPLE" in environ)
|
print("PROTECTED_TOKEN_EXAMPLE" in environ)
|
||||||
print(environ.get("PROTECTED_TOKEN_EXAMPLE"))
|
print(environ.get("PROTECTED_TOKEN_EXAMPLE"))
|
||||||
|
|
Loading…
Reference in a new issue