Skip to content

Instantly share code, notes, and snippets.

@spy86
Created May 25, 2022 16:02
Show Gist options
  • Select an option

  • Save spy86/47e121fd86a3a0b8958b3b6dcd7a6d9e to your computer and use it in GitHub Desktop.

Select an option

Save spy86/47e121fd86a3a0b8958b3b6dcd7a6d9e to your computer and use it in GitHub Desktop.
pipelineJob("Build_Vagrant_Image") {
logRotator(30, -1, 1, -1)
parameters {
stringParam('VAGRANT_BOX_VERSION', '1.1', 'Version of vagrantbox')
choiceParam('IMAGE', ['-----Choose OS for Build----', '-----Ubuntu-----', 'ubuntu1604', 'ubuntu1804', 'ubuntu2004', '-----CentOS-----', 'centos6', 'centos7', 'centos8', '-----Debian-----', 'debian8', 'debian9', 'debian10', '-----FreeBSD-----', 'freebsd11.4', 'freebsd12.2', 'freebsd13.0', ], 'Build OS')
}
definition {
cpsScm {
scm {
git{
branch('*/master')
remote {
url('https://github.com/test/jobdsl.git')
credentials('11111111-2222-3333-4444-555555555555')
}
}
scriptPath('pipelines/BuildPackerImage.groovy')
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment