jenkinsfile clean

This commit is contained in:
Witalij Poljatchek 2024-01-11 00:17:45 +01:00
parent 62edbd20c5
commit c6b6638b8a
1 changed files with 5 additions and 7 deletions

12
Jenkinsfile vendored
View File

@ -8,11 +8,9 @@ pipeline {
stage('Build static content') {
steps {
sh '''
#npm install
#npm run build
echo "------"
npm install
npm run build
pwd
echo "------"
docker build --progress=plain -t bbuddy/bbuddy_ui:latest .
'''
}
@ -20,9 +18,9 @@ pipeline {
stage('Push image to harbor ') {
steps {
sh '''
#sudo docker login https://harbor-wtkp3fsbv6.vertexa.devbay.tech/ -u 'robot$jenkins' -p 'ZrzsVIAeueW1p0alpAnPfM5CDtaRVVKz'
#sudo docker tag bbuddy/bbuddy_ui:latest harbor-wtkp3fsbv6.vertexa.devbay.tech/bbuddy/bbuddy_ui:latest
#sudo docker push harbor-wtkp3fsbv6.vertexa.devbay.tech/bbuddy/bbuddy_ui:latest
sudo docker login https://harbor-wtkp3fsbv6.vertexa.devbay.tech/ -u 'robot$jenkins' -p 'ZrzsVIAeueW1p0alpAnPfM5CDtaRVVKz'
sudo docker tag bbuddy/bbuddy_ui:latest harbor-wtkp3fsbv6.vertexa.devbay.tech/bbuddy/bbuddy_ui:latest
sudo docker push harbor-wtkp3fsbv6.vertexa.devbay.tech/bbuddy/bbuddy_ui:latest
'''
}