8 Commits

Author SHA1 Message Date
Nana Janashia
39cd2b4274 Delete script.groovy 2020-11-06 12:28:42 +00:00
Nana Janashia
97716be9e5 Delete Jenkinsfile 2020-11-06 12:28:25 +00:00
Nana Janashia
e7c31d0701 Update Jenkinsfile 2020-11-06 11:15:15 +00:00
Nana Janashia
2702970ffc Update Jenkinsfile 2020-11-06 10:53:22 +00:00
Nana Janashia
3610ff3f17 Update Jenkinsfile 2020-11-06 10:52:18 +00:00
Nana Janashia
51a1618bf9 Update Jenkinsfile 2020-11-06 10:51:55 +00:00
Nana Janashia
2f4822a421 Update Jenkinsfile 2020-11-06 10:50:51 +00:00
Nana Janashia
57b5004ec8 Update Jenkinsfile 2020-11-06 10:39:13 +00:00
2 changed files with 0 additions and 61 deletions

47
Jenkinsfile vendored
View File

@@ -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}"
}
}
}
}
}

View File

@@ -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