Skip to content

Commit

Permalink
sync github
Browse files Browse the repository at this point in the history
  • Loading branch information
nbr23 committed Feb 22, 2023
1 parent 24bea1f commit 3591a98
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
pipeline {
agent any
stages {


stage('Checkout'){
steps {
checkout scm
}
}

stage('Dockerhub login') {
steps {
withCredentials([usernamePassword(credentialsId: 'dockerhub', usernameVariable: 'DOCKERHUB_CREDENTIALS_USR', passwordVariable: 'DOCKERHUB_CREDENTIALS_PSW')]) {
Expand All @@ -35,11 +32,11 @@ pipeline {
'''
}
}
}

post {
always {
sh 'docker logout'
stage('Sync github repo') {
when { branch 'master' }
steps {
syncRemoteBranch('[email protected]:nbr23/youtube-dl-server.git', 'master')
}
}
}
}

0 comments on commit 3591a98

Please sign in to comment.