Delete Jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-06 12:28:25 +00:00
parent e7c31d0701
commit 97716be9e5

43
Jenkinsfile vendored
View File

@@ -1,43 +0,0 @@
def gv
pipeline {
agent any
tools {
maven 'my-mvn'
}
stages {
stage("init") {
steps {
script {
gv = load "script.groovy"
}
}
}
stage("build jar") {
steps {
script {
gv.buildApp()
sh 'mvn package'
}
}
}
stage("build image") {
steps {
script {
withCredentials([usernamePassword(credentialsId: 'docker-hub', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
sh 'docker build -t nanajanashia/demo-app:jma-2.0 .'
sh "echo $PASS | docker login -u $USER --password-stdin"
sh 'docker push nanajanashia/demo-app:jma-2.0'
}
}
}
}
stage("deploy") {
steps {
script {
gv.deployApp()
}
}
}
}
}