diff --git a/Jenkinsfile b/Jenkinsfile index b2530a1..0a46733 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,10 +25,10 @@ pipeline { steps { // Checkout the source code from your Git repository script { - def tag = 'your_tag_here' + def tag = 'v32' // Checkout the specific tag - checkout([$class: 'GitSCM', branches: [[name: "refs/tags/v32"]], userRemoteConfigs: [[url: 'https://github.com/Divya4242/React-Node-Docker-Project-CICD-JENKINS-EC2-PUBLIC.git']]]) + checkout([$class: 'GitSCM', branches: [[name: "refs/tags/${tag}"]], userRemoteConfigs: [[url: 'https://github.com/Divya4242/React-Node-Docker-Project-CICD-JENKINS-EC2-PUBLIC.git']]]) // git branch: 'main', url: 'https://github.com/Divya4242/React-Node-Docker-Project-CICD-JENKINS-EC2-PUBLIC.git', credentialsId: 'github-id' // Provide your Git credentials ID here // git branch: 'main', url: 'https://github.com/Divya4242/React-Node-Docker-Project-CICD-JENKINS-EC2-PUBLIC.git', ref: 'refs/tags/v0.1.0', timeout: 30 //sh "curl -LJO -H 'Authorization: token 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' https://api.github.com/repos/Divya4242/React-Node-Docker-Project-CICD-JENKINS-EC2-PUBLIC/releases/tags/v0.1.0/assets/v0.1.0.tar.gz"