adding credentials

This commit is contained in:
areeqakbr 2025-02-18 13:55:14 +07:00
parent 642870f192
commit 5a88cc575b
1 changed files with 14 additions and 2 deletions

16
Jenkinsfile vendored
View File

@ -1,10 +1,23 @@
pipeline { pipeline {
agent any agent any
environment {
GIT_CREDENTIALS = '560c52f4-4213-4fb3-a757-620b6d3f119c' // This should be the ID of your Jenkins credentials
}
stages { stages {
stage('Checkout') { stage('Checkout') {
steps { steps {
git branch: 'main', url: 'https://git.winteraccess.id/winter-access/backend_nam.git' checkout([
$class: 'GitSCM',
branches: [[name: '*/main']],
doGenerateSubmoduleConfigurations: false,
extensions: [],
userRemoteConfigs: [[
url: 'https://git.winteraccess.id/winter-access/backend_nam.git',
credentialsId: env.GIT_CREDENTIALS
]]
])
} }
} }
@ -17,7 +30,6 @@ pipeline {
} }
} }
stage('Restart Service') { stage('Restart Service') {
steps { steps {
// Add your deployment steps here // Add your deployment steps here