Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 39cd2b4274 | |||
| 97716be9e5 | |||
| e7c31d0701 | |||
| 2702970ffc | |||
| 3610ff3f17 | |||
| 51a1618bf9 | |||
| 2f4822a421 | |||
| 57b5004ec8 |
Vendored
-47
@@ -1,47 +0,0 @@
|
||||
def gv
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
choice(name: 'VERSION', choices: ['1.1.0', '1.2.0', '1.3.0'], description: '')
|
||||
booleanParam(name: 'executeTests', defaultValue: true, description: '')
|
||||
}
|
||||
stages {
|
||||
stage("init") {
|
||||
steps {
|
||||
script {
|
||||
gv = load "script.groovy"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("build") {
|
||||
steps {
|
||||
script {
|
||||
gv.buildApp()
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("test") {
|
||||
when {
|
||||
expression {
|
||||
params.executeTests
|
||||
}
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
gv.testApp()
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("deploy") {
|
||||
steps {
|
||||
script {
|
||||
env.ENV = input message: "Select the environment to deploy to", ok: "Done", parameters: [choice(name: 'ONE', choices: ['dev', 'staging', 'prod'], description: '')]
|
||||
|
||||
gv.deployApp()
|
||||
echo "Deploying to ${ENV}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
def buildApp() {
|
||||
echo 'building the application...'
|
||||
}
|
||||
|
||||
def testApp() {
|
||||
echo 'testing the application...'
|
||||
}
|
||||
|
||||
def deployApp() {
|
||||
echo 'deplying the application...'
|
||||
echo "deploying version ${params.VERSION}"
|
||||
}
|
||||
|
||||
return this
|
||||
Reference in New Issue
Block a user