12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- pipeline {
- agent {
- label "swarm"
- }
- environment {
- git_url=""
- docker_registry='dev-registry.infoclinica.ru:5000'
- docker_image='node'
- }
- parameters {
- string(
- name: "repo",
- defaultValue: "prod",
- description: "Repository to build and/or deploy from."
- )
- string(
- name: "service_update",
- defaultValue: "info_node info_node-api",
- description: "Services to update - i.e. info_node or/and info_node-api."
- )
- }
- stages
- stage("Build") {
- steps
- sh
- }
- }
- stage("Publish") {
- steps
- sh
- }
- }
- stage("Update") {
- when
- steps
- echo
- script
- for
- try{
- echo
- sh
- }
- catch(err){
- echo
- }
- }
- }
- sh
- }
- }
- }
- post
- always
- echo
- }
- changed
- echo
- }
- failure
- echo
- }
- success
- echo
- }
- unstable
- echo
- }
- aborted
- echo
- }
- }
- }
|