cd script

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-08-04 10:02:54 +03:00
parent c5a16dd2c3
commit a812c6ebc9
2 changed files with 7 additions and 0 deletions

6
cd/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,6 @@
stage ('change folder') {
script {
echo 'CD_DIR=' + CD_DIR
sh "cd ${CD_DIR}";
}
}

View File

@ -9,5 +9,6 @@ stage('install:ci') {
} }
currentBuild.description = "#${BUILD_NUMBER}, branch ${branchName}, tag ${tag ? tag : 'no tag'}\n\n${lastLog}" currentBuild.description = "#${BUILD_NUMBER}, branch ${branchName}, tag ${tag ? tag : 'no tag'}\n\n${lastLog}"
echo 'starting installing' echo 'starting installing'
sh "pwd"
sh 'npm ci' sh 'npm ci'
} }