Skip to content

Commit 9a4287f

Browse files
Merge pull request #3636 from nickanderson/nightly-docs-builds/master
Autobuild upstream master docs
2 parents d32fdef + 6725c24 commit 9a4287f

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

Jenkinsfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pipeline {
77
PACKAGE_JOB = "cf-remote"
88
PACKAGE_UPLOAD_DIRECTORY = "n/a"
99
PACKAGE_BUILD = "n/a"
10+
LTS_VERSION = "${params.LTS_BASED_ON_VERSION ?: ''}"
1011
}
1112
parameters {
1213
string(name: "CORE_REV", defaultValue: '', description: 'used for changelog, examples. Use NUMBER or "pull/NUMBER/merge" for pull request (it\'s merged version, THIS DOESN\'T MERGE THE PR) or "pull/NUMBER/head" to build the docs with the non-merged code. Special syntax \'tag:SOME_TAG\' can be used to use a tag as a revision.')
@@ -18,6 +19,7 @@ pipeline {
1819
string(name: "DOCS_BRANCH", defaultValue: '', description: 'Where to upload artifacts - to http://buildcache.cloud.cfengine.com/packages/build-documentation-$DOCS_BRANCH/ and https://docs.cfengine.com/docs/$DOCS_BRANCH/')
1920
string(name: "PACKAGE_JOB", defaultValue: 'cf-remote', description: 'where to get CFEngine HUB package from, either a dir at http://buildcache.cloud.cfengine.com/packages like testing-pr or a keyword cf-remote to use cf-remote download')
2021
string(name: "USE_NIGHTLIES_FOR", defaultValue: '', description: 'branch whose nightlies to use (master, 3.18.x, etc) - will be one of http://buildcache.cloud.cfengine.com/packages/testing-pr/jenkins-$USE_NIGHTLIES_FOR-nightly-pipeline-$NUMBER/')
22+
string(name: "LTS_BASED_ON_VERSION", defaultValue: '', description: 'The actual CFEngine version that LTS is based on. This version will be used in code blocks or other places using the cfengine.branch variable.')
2123
}
2224
triggers {
2325
// Run nightly at 2 AM to trigger the master doc build
@@ -35,7 +37,7 @@ pipeline {
3537
script {
3638
echo "Triggered by cron - launching master doc build"
3739

38-
// Build master
40+
// Build master (parameters match fast-build-and-deploy-docs-master defaults)
3941
build job: env.JOB_NAME, parameters: [
4042
string(name: 'CORE_REV', value: 'master'),
4143
string(name: 'ENTERPRISE_REV', value: 'master'),
@@ -45,7 +47,8 @@ pipeline {
4547
string(name: 'NT_DOCS_REV', value: 'main'),
4648
string(name: 'DOCS_BRANCH', value: 'master'),
4749
string(name: 'PACKAGE_JOB', value: 'cf-remote'),
48-
string(name: 'USE_NIGHTLIES_FOR', value: 'master')
50+
string(name: 'USE_NIGHTLIES_FOR', value: 'master'),
51+
string(name: 'LTS_BASED_ON_VERSION', value: '')
4952
], wait: false
5053

5154
echo "Nightly master build triggered successfully"

content/examples/example-snippets/add_software_packages_to_the_system.cf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Package management
22
body common control
33
{
4-
inputs => { "$(sys.libdir)/packages.cf" }
4+
inputs => { "$(sys.libdir)/packages.cf" };
55
bundlesequence => { "packages" };
66
}
77
#############################################

content/examples/tutorials/manage-ntp.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ bundle agent ntp
194194
services:
195195
"$(ntp_service_name)" -> { "StandardsDoc 3.2.2" }
196196
service_policy => "start",
197-
classes => results( "bundle", "ntp_service")
197+
classes => results( "bundle", "ntp_service");
198198
199199
reports:
200200
ntp_service_repaired.inform_mode::

0 commit comments

Comments
 (0)