Declarative Pipeline, how post build shoud work when chaining jobs?

2018-01-12 Thread Jakub Michalec
Hello, I have job like below, *createDeployment* comes from sharedlibrary, and just calling 'build job' with passed params. Triggered job (deployment) have post action to delete deployment if anything wrong happened. When deployment fail triggered job call post actions but only archiveArtifacts

Re: SharedLibrary, clone, using resources

2017-11-07 Thread Jakub Michalec
I have a bit different scenario, I don't use Jenkinsfile in this jobs, they're more like 'utility' jobs eq Clean Azure Env etc. So, I want to get pipeline groovy script which use Powershell in stages from folder scripts. Also, I use Stash (atlassian git). I decide to create new repo, just for

Re: SharedLibrary, clone, using resources

2017-11-03 Thread Jakub Michalec
W dniu piątek, 3 listopada 2017 16:26:08 UTC+1 użytkownik itchymuzzle napisał: > > Please post something which is readable. Thanks. > Hello, I have question regarding SharedLibrary, I put some powershell script (/scripts/…) in same repository and I want to use them during builds. Atm, I use

SharedLibrary, clone, using resources

2017-11-03 Thread Jakub Michalec
Hello, I have question regarding SharedLibrary, I put some powershell script (/scripts/…) in same repository and I want to use them during builds. Atm, I use it like this @Library('JenkinsSharedLibrary') _ pipeline { agent { node { label 'azure' } } options { s