Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- agent any
- stages {
- stage ('Prepare') {
- steps {
- git branch: 'tag1', url: 'git@bitbucket.org:moboxcompany/tests.git'
- }
- }
- stage ('Deploy') {
- when {
- tag "release*"
- }
- steps {
- sshPublisher(publishers: [sshPublisherDesc(configName: "JenkinsSrv", transfers: [sshTransfer(execCommand: 'pwd')])])
- }
- }
- }
- post ('POST BUILD'){
- always {
- echo 'This is post action!!!'
- }
- }
- }
Add Comment
Please, Sign In to add comment