Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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