added params
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -12,10 +12,10 @@ pipeline {
|
|||||||
// TOKEN = credentials('c661e484bb4f032f8a0a5b02cda6f3344ca584b5')
|
// TOKEN = credentials('c661e484bb4f032f8a0a5b02cda6f3344ca584b5')
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// parameters {
|
parameters {
|
||||||
// string(name: 'REPO_NAME', defaultValue: '', description: 'Repo Name')
|
string(name: 'REPO_NAME', defaultValue: '', description: 'Repo Name')
|
||||||
// string(name: 'GIT_REF', defaultValue: '', description: 'Git Ref')
|
string(name: 'GIT_REF', defaultValue: '', description: 'Git Ref')
|
||||||
// }
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
buildDiscarder(
|
buildDiscarder(
|
||||||
@@ -44,8 +44,9 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
echo 'Start Pushing'
|
echo 'Start Pushing'
|
||||||
script {
|
script {
|
||||||
|
def tag = "innohub/tatort:${env.BUILD_ID}-dev"
|
||||||
docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') {
|
docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') {
|
||||||
docker.build("innohub/tatort:${env.BUILD_ID}", '-f Dockerfile.dev .').push('latest')
|
docker.build(tag, '-f Dockerfile.dev .').push()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user