Browse Source

Build job - Rename repo after git clone

master
Daniel Gyulai 4 years ago
parent
commit
f981431218
  1. 5
      Jenkinsfile

5
Jenkinsfile

@ -12,12 +12,13 @@ spec:
) {
node(POD_LABEL) {
stage('Build') {
stage('Git') {
git url: 'https://gyulai.cloud/git/bme/covidok-backend.git',
credentialsId: '1b1c30a0-590d-41d4-b775-bdb90e837bc8'
sh 'mv *covidok-backend* covidok-backend'
container('kaniko') {
stage('Build and publish dev Docker image') {
sh '/kaniko/executor -f `pwd`/covidok-backend/CoviDok/Dockerfile -c `pwd` --destination=docker.local/bme/covidok'
sh '/kaniko/executor --dockerfile `pwd`/covidok-backend/CoviDok/Dockerfile -c `pwd` --destination=docker.local/bme/covidok'
}
}
}

Loading…
Cancel
Save