new file: Jenkinsfile new file: apache.ini new file: hosts.conf new file: icinga2.ini new file: php-fm.ini new file: services.conf new file: start.sh new file: supervisord.conf Initial commit
18 lines
564 B
Groovy
18 lines
564 B
Groovy
node("docker-node") {
|
|
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
|
|
|
|
git branch: "centos7", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-centos-icinga2", credentialsId: 'jenkins-to-git'
|
|
|
|
sh "git rev-parse HEAD > .git/commit-id"
|
|
def commit_id = readFile('.git/commit-id').trim()
|
|
println commit_id
|
|
|
|
stage "build"
|
|
def app = docker.build "library/x86_64/centos/icinga2"
|
|
|
|
stage "publish"
|
|
app.push("${env.BUILD_NUMBER}")
|
|
app.push("latest")
|
|
}
|
|
}
|