| | |
| | | def customImage |
| | | def discordUrl = "https://discordapp.com/api/webhooks/764667082272145418/vorf2JdFG47WAmQP3yZhgHH12wW_qUXG0bS0SG8INLYVwU0HcDFajq9doaDgi_hnI00-" |
| | | def scmvars |
| | | |
| | | |
| | | pipeline{ |
| | |
| | | stage ('Build image'){ |
| | | steps{ |
| | | script{ |
| | | customImage = docker.build("${JOB_NAME}:${BUILDDATE}-build-${env.BUILD_ID}") |
| | | customImage = docker.build("${JOB_NAME}:${BUILDDATE}-build-${env.BUILD_ID}","--no-cache .") |
| | | } |
| | | } |
| | | post{ |
| | |
| | | } |
| | | stage('Push Image'){ |
| | | steps{ |
| | | script{ |
| | | input 'Proceed with push' |
| | | script{ |
| | | docker.withRegistry('https://dev-reg.darkurthe.net'){ |
| | | customImage.push() |
| | | customImage.push("latest") |
| | | } |
| | | } |
| | | } |
| | | } |
| | | post{ |
| | | failure { |
| | |
| | | } |
| | | } |
| | | } |
| | | stage('Deploy service to dev'){ |
| | | |
| | | } |
| | | } |
| | | post{ |
| | | success { |