12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- pipeline {
- agent {
- label "swarm"
- }
- environment {
- git_url=""
- docker_registry='dev-registry.infoclinica.ru:5000'
- docker_image='node'
- }
- parameters {
- string(
- name: "build",
- defaultValue: "true",
- description: "To build image set built to 'true'. To not build, set parameter to anything else - 'false'."
- )
- string(
- name: "repo",
- defaultValue: "prod",
- description: "Repository to build and/or deploy from."
- )
- string(
- name: "service_update",
- defaultValue: "",
- description: "Services to update - i.e. info_node or/and info_node-api. Lave empty to not update services."
- )
- }
- stages
- stage("Build") {
- when
- steps
- echo
- sh
- }
- }
- stage("Publish") {
- when
- steps
- echo
- sh
- sh
- }
- }
- stage("Update") {
- when
- steps
- echo
- script
- for
- echo
- }
- }
- sh
- }
- }
- }
- post
- always
- echo
- }
- changed
- echo
- }
- failure
- echo
- }
- success
- echo
- }
- unstable
- echo
- }
- aborted
- echo
- }
- }
- }
|