|
@@ -4,20 +4,23 @@ pipeline {
|
|
|
}
|
|
|
parameters {
|
|
|
string(
|
|
|
- name: "service",
|
|
|
- defaultValue: "",
|
|
|
- description: "The name of service that should be scaled"
|
|
|
+ name: "build_repo",
|
|
|
+ defaultValue: "prod",
|
|
|
+ description: "Repository to build from. If not presented - build will not run."
|
|
|
)
|
|
|
string(
|
|
|
- name: "scale",
|
|
|
+ name: "service_update",
|
|
|
defaultValue: "",
|
|
|
- description: "Number of replicas to add or remove."
|
|
|
+ description: "Services to update - i.e. node or/and node-api"
|
|
|
)
|
|
|
}
|
|
|
stages {
|
|
|
- stage("Scale") {
|
|
|
+ stage("Build") {
|
|
|
+ when {
|
|
|
+ not expression { build_repo == null || build_repo.empty }
|
|
|
+ }
|
|
|
steps {
|
|
|
- echo "Scaling $service by $scale"
|
|
|
+ echo "Building with repo $build_repo and updating $service_update"
|
|
|
sh 'pwd'
|
|
|
}
|
|
|
post {
|