예제 #1
0
def main(args):

    if globalconfig.config["tag"] == None:
        tag = gitmodule.createTag()
    else:
        tag = globalconfig.config["tag"]

    for x in range(0, len(globalconfig.config["gitRepos"])):
        if os.path.exists(globalconfig.config["gitRepos"][x]["repoFileSystemPath"]) == False:
            continue
        gitmodule.tagRelease(tag, path=globalconfig.config["gitRepos"][x]["repoFileSystemPath"])
예제 #2
0
def main(args):


	deploymentTag = gitmodule.createTag()

	repoData = []

	for x in range(0, len(globalconfig.config['gitRepos'])):
		if os.path.exists(globalconfig.config['gitRepos'][x]['repoFileSystemPath']) == False:
			continue
		
		globalconfig.config['gitRepos'][x]['repoLatestStageTag'] = gitmodule.getLatestStageTag(path=globalconfig.config['gitRepos'][x]['repoFileSystemPath'])
		gitmodule.checkoutStage(stageTag=globalconfig.config['gitRepos'][x]['repoLatestStageTag'], path=globalconfig.config['gitRepos'][x]['repoFileSystemPath'])
		gitmodule.tagRelease(deploymentTag, path=globalconfig.config['gitRepos'][x]['repoFileSystemPath'])
		globalconfig.config['gitRepos'][x]['repoChangeList'] = gitmodule.getCommitLog(tagRegEx=globalconfig.config['releaseTag'] + "_" + globalconfig.config['deploymentEnv'] + ".*", path=globalconfig.config['gitRepos'][x]['repoFileSystemPath'])
		globalconfig.config['gitRepos'][x]['repoPath'] = gitmodule.getGitPath(globalconfig.config['gitRepos'][x]['repoFileSystemPath'])
		repoData.append(globalconfig.config['gitRepos'][x])

	generateReleaseNoteHTML(repoData=repoData, buildNo=globalconfig.config['buildNumber'])
	if globalconfig.config['emailEnabled'] == True:
		releaseNoteEmail(globalconfig.config['emailPassword'], fileAttachment="releaseNote.html")