You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Michael Jenkins 71513c63b2 Copy main content to README 4 years ago
.github Initial commit 4 years ago
.gitignore Initial commit 4 years ago
05_01.md Change Report to Deploy 4 years ago
CONTRIBUTING.md Initial commit 4 years ago
Jenkinsfile Change Report to Deploy 4 years ago
LICENSE Initial commit 4 years ago
NOTICE Initial commit 4 years ago
README.md Copy main content to README 4 years ago

README.md

Learning Jenkins, 05-01: Pipeline as Code

Create a pipeline job.

Paste the following code in the pipeline definition:

pipeline {
    agent any
    options {
        buildDiscarder(logRotator(daysToKeepStr: '10', numToKeepStr: '10'))
        timeout(time: 12, unit: 'HOURS')
        timestamps()
    }
    triggers {
          cron '@midnight'
    }
    stages {
        stage('Initialize') {
            steps {
                echo 'Initializing..'
            }
        }
        stage('Build') {
            steps {
                echo 'Building..'
            }
        }
        stage('Test') {
            steps {
                echo 'Testing..'
            }
        }
        stage('Deploy') {
            steps {
                echo 'Deploying....'
            }
        }
    }
}