From 106adb539a64ed5164b6fe3f3df0cd27cdf88b1a Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 27 Sep 2019 16:01:21 +0200 Subject: [PATCH] credentials --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5a03d88..7a54254 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,11 +14,12 @@ node { ''' } stage ('Checkout'){ - //git branch: 'refs/heads/Dev', url: 'https://github.com/github.com:Hion-V/hForumPHP.git' - echo env.BRANCH_NAME + git([url: 'git@github.com:Hion-V/hForumPHP.git', branch: 'Dev', credentialsId: '5b510e82-81b9-4758-8263-0601f9c11e43']) } stage('prepare') { sh ''' + #git clone git@github.com:Hion-V/hForumPHP.git + #git -C ./hForumPHP/ checkout Dev git clone git@github.com:Hion-V/jenkins-testapache.git cp -r hForumPHP/dev_mvc jenkins-testapache/app '''