Jenkinsfile
This commit is contained in:
45
Jenkinsfile
vendored
Normal file
45
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
stages {
|
||||||
|
stage('Checkout'){
|
||||||
|
steps {
|
||||||
|
git credentialsId: '3e336704-7d58-4dcb-88b6-1ef7b5392576', url: 'https://git.fet.at/andis/doc.2020.app.git'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('build') {
|
||||||
|
steps{
|
||||||
|
script {
|
||||||
|
// app = docker.build("docker.triton2.fet.at/dev_theia", "--no-cache .")
|
||||||
|
app = docker.build("doc2020app", ".")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
stage('Test Inside') {
|
||||||
|
steps{
|
||||||
|
script {
|
||||||
|
app.inside("-u root:root") {
|
||||||
|
sh '/usr/local/openresty/bin/openresty -t'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
stage('Deploy Image') {
|
||||||
|
steps{
|
||||||
|
script {
|
||||||
|
docker.withRegistry( 'https://docker.fet.at/', '3e336704-7d58-4dcb-88b6-1ef7b5392576') {
|
||||||
|
app.push("0.$BUILD_NUMBER")
|
||||||
|
app.push('latest')
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}}
|
||||||
Reference in New Issue
Block a user