PK
Size: a a a
PK
DS
git diff --name-only ${curCommit} ${
commitFromPrevBuild}
DS
DB
E
Ʋ
BuildEnvironment
-> Inject environment variables to the build process
-> Inject passwords to the build as environment variables
.MM
BuildEnvironment
-> Inject environment variables to the build process
-> Inject passwords to the build as environment variables
.Ʋ
Ʋ
HC
MK
properties(
[buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
parameters([
choice(choices: ["2.11-0.11.0.2", "2.13-2.6.0.0"].join("\n"), description: 'Версия kafka', name: 'KAFKA_VERSION'),
file(name: 'ENVS', description: 'Hosts Kafka & Zk')
])])
node('docker-slave'){
stage('Checkout'){
checkout changelog: false, scm: [$class: 'MercurialSCM', credentialsId: "${CI_CREDENTIALS}", installation: '(Default)', revision: 'default', source: BUILD_SCRIPTS_REPO]
}
stage('Install agent'){
ansiColor('xterm'){
withCredentials([usernamePassword(credentialsId: 'builduser', usernameVariable: 'ARTIFACTORY_USER', passwordVariable: 'ARTIFACTORY_PASS')]) {
ansiblePlaybook credentialsId: 'devops', disableHostKeyChecking: true, installation: 'ansible', inventory: env.ENVS , playbook: "${WORKSPACE}/playbooks/roles/kafka/kafka.yml", colorized: true, sudoUser: 'devops', extras: '-v'
}
}
}
}
MK
ᴅ
HB
ᴅ
BR
VD
VD
E