Files
MySensors/.ci/Jenkinsfile-nightly
Patrick Fallberg 901258f165 Implement Jenkins pipelines as code (#948)
Jenkins has been updated with new jobs that scan and execute
Jenkinsfiles. These Jenkinsfiles encapsulates all logic for building
and validating the commits in both pull requests and merged pull
requests.

Filestructure is as follows:
  .ci/Jenkinsfile - This is the main Jenkinsfile that handles normal
                    pull request builds as well as merged pull request
                    post-validation.
		    Any repository in the MySensors GitHub organization
		    can implement this file and Jenkins will pick up
		    and execute it automatically.
  .ci/Jenkinsfile-nightly - This perform merged pull request
                            post-validation using the nightly builds of
			    the Arduino IDE to provide early compliancy
			    status of the MySensors library for
			    upcoming releases of the Arduino IDE
  .ci/ - This folder contain all the auxiliary scripts executed by the
         Jenkinsfiles as well

Fixes #934
2017-10-13 20:55:02 +02:00

19 lines
647 B
Groovy

#!groovy
node {
deleteDir() // Purge workspace
// Checkout the repo to get the necessary groovy scripts (and place it in the required subdirectory)
dir('MySensors') {
checkout scm
}
def pipeline = load('MySensors/.ci/pipeline.groovy')
// Invoke the main pipeline
pipeline {
library_root = 'MySensors/' // Location of the MySensors library
repository_root = 'MySensors/' // Location of the repository root
github_organization = 'mysensors' // Name of the GitHub Organization
repository_name = 'MySensors' // Name of the repository on GitHub
nightly_arduino_ide = true // Pick Arduino IDE variant to use
}
}