Sha256: f09469dc33bde6d3140d32ad3dc96d1037f2d8e312be8c6760a91278339e105c

Contents?: true

Size: 921 Bytes

Versions: 4

Compression:

Stored size: 921 Bytes

Contents

## Create pipeline style project

Description: Create a pipeline job which can run a specified groovy script at a particular time

Example

    builder.pipeline 'Schedule-sample-pipeline' do
        schedule '0 15 * * *'
        groovy <<EOS

    def date = new Date()
    def release = date.format('yyyy.MM.dd')
    def releaseManifest = release + ".0400"
    println releaseManifest

    build job: 'CreateRelease-gen3', 
        parameters: [
                string(name: 'OctopusServer', value: 'https://OctopusServerSomewhere.com'), 
                string(name: 'OctopusKey', value: 'An API Key'), 
                string(name: 'DeploySpecificPackages', value: 'false'), 
                string(name: 'ReleaseNumber', value: '63'), 
                string(name: 'ReleaseManifest', value: releaseManifest), 
                string(name: 'Channel', value: 'Release Channel')]
    EOS

    end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubyjobbuilderdsl-0.0.6 docs/pipeline.md
rubyjobbuilderdsl-0.0.5 docs/pipeline.md
rubyjobbuilderdsl-0.0.4 docs/pipeline.md
rubyjobbuilderdsl-0.0.3 docs/pipeline.md