コード例 #1
0
ファイル: celebrate_step.py プロジェクト: KTH/evolene
 def get_party_message(self, data):
     build_nr = int(str(environment.get_build_number()))
     if build_nr % 100 == 0:
         return ("<!here> :parrot_party: :parrot_party: :parrot_party: {} build number {}! "
                 "You are worth some :champagne:\nhttps://www.youtube.com/watch?v=eCzhNPSXpfI"
                 .format(data[pipeline_data.IMAGE_NAME], build_nr))
     self.step_ok()
     return None
コード例 #2
0
    def get_build_environment(self, data):

        return {
            "gitBranch": environment.get_git_branch(),
            "gitCommit": environment.get_git_commit(),
            "gitUrl": environment.get_git_url(),
            "buildNumber": environment.get_build_number(),
            "buildDate": environment.get_time(),
            "version": data[pipeline_data.PACKAGE_JSON]["version"]
        }
コード例 #3
0
    def get_build_environment(self, data):

        return {
            "gitBranch":
            environment.get_git_branch(),
            "gitCommit":
            environment.get_git_commit(),
            "gitUrl":
            environment.get_git_url(),
            "jenkinsBuild":
            environment.get_build_number(),
            "jenkinsBuildDate":
            environment.get_time(),
            "dockerName":
            data[pipeline_data.IMAGE_NAME],
            "dockerVersion":
            data[pipeline_data.IMAGE_VERSION],
            "dockerImage":
            image_version_util.prepend_registry(
                image_version_util.get_image(data))
        }
コード例 #4
0
ファイル: image_version_step.py プロジェクト: mibengt/evolene
 def get_patch_version(self, data):
     if pipeline_data.PATCH_VERSION in data:
         return data[pipeline_data.PATCH_VERSION]
     return environment.get_build_number()