Ejemplo n.º 1
0
def __getBasePipeline():

    checkSpaces = common.shellSequence(commands=[
        common.shellArg(command=util.Interpolate(
            "(! grep -rnP '\t' modules assemblies pom.xml etc --include=pom.xml)"
        ),
                        haltOnFailure=False,
                        logname='Tab Check'),
        common.shellArg(command=util.Interpolate(
            "(! grep -rn ' $' modules assemblies pom.xml etc --include=pom.xml)"
        ),
                        haltOnFailure=False,
                        logname='End Of Line Space Check')
    ],
                                       workdir="build/docs/guides",
                                       name="Formatting checks")

    reports = [
        'site', 'site:stage', '-Daggregate=true', '-Dcheckstyle.skip=true',
        '-P', 'none,!frontend'
    ]
    site = common.getBuild(override=reports, name="Build site report")

    f_build = util.BuildFactory()
    f_build.addStep(common.getPreflightChecks())
    f_build.addStep(common.getClone())
    f_build.addStep(common.getWorkerPrep())
    f_build.addStep(common.setTimezone())
    f_build.addStep(common.setLocale())
    f_build.addStep(common.getBuild())
    f_build.addStep(checkSpaces)
    f_build.addStep(site)

    return f_build
def getBuildPipeline():

    stampVersion = common.shellCommand(
        command=util.Interpolate("echo '%(prop:got_revision)s' | tee revision.txt"),
        name="Stamping the build")


    updateBuild = common.copyAWS(
        pathFrom="revision.txt",
        pathTo="s3://{{ s3_public_bucket }}/builds/%(prop:branch_pretty)s/latest.txt",
        name="Update latest build marker in S3")

    updateCrowdin = common.shellCommand(
        command=util.Interpolate("echo api_key: '%(secret:crowdin.key)s' >> .crowdin.yaml; echo crowdin --config .crowdin.yaml upload sources -b %(prop:branch)s"),
        doStepIf={{ push_crowdin }},
        hideStepIf={{ not push_crowdin }},
        name="Update Crowdin translation keys")

    f_build = __getBasePipeline()
    f_build.addStep(common.getWorkerPrep())
Ejemplo n.º 3
0
def getBuildPipeline():

    github_release = GenerateGithubRelease(
        release_tag=util.Interpolate("%(prop:branch)s"),
        release_name=util.Interpolate("Opencast %(prop:branch)s"),
        release_message=util.Interpolate("Changelog available at #TODO"),
        haltOnFailure=True,
        flunkOnFailure=True)

    f_build = __getBasePipeline()
    f_build.addStep(common.getWorkerPrep())
    f_build.addStep(common.loadMavenSettings())
    f_build.addStep(common.loadSigningKey())
    f_build.addStep(common.getBuild(override=['install', 'nexus-staging:deploy', 'nexus-staging:release', '-P', 'release,none', '-s', 'settings.xml', '-DstagingProgressTimeoutMinutes=10'], timeout=600))
    f_build.addStep(common.unloadSigningKey())
    f_build.addStep(common.getTarballs())
    #f_build.addStep(github_release)
    f_build.addStep(common.unloadMavenSettings())
    f_build.addStep(common.getClean())

    return f_build
def getPullRequestPipeline():

    f_build = __getBasePipeline()
    f_build.addStep(common.getWorkerPrep())
    f_build.addStep(common.getBuild())
    f_build.addStep(getBuildSize)
Ejemplo n.º 5
0
def getPullRequestPipeline():

    f_build = __getBasePipeline()
    f_build.addStep(common.getWorkerPrep())
    #Freak out and throw an exception, this should *not* do anything
    return f_build