bbuddy-ui/Jenkinsfile

31 lines
919 B
Plaintext
Raw Normal View History

2024-01-05 19:49:12 +00:00
pipeline {
agent { label 'jenkins-nodejs-agent' }
stages {
stage('Build static content') {
steps {
sh '''
2024-01-10 22:02:39 +00:00
#npm install
#npm run build
echo "------"
pwd
echo "------"
2024-01-10 23:01:08 +00:00
docker build --progress=plain -t bbuddy/bbuddy_ui:latest .
2024-01-05 19:49:12 +00:00
'''
}
}
stage('Push image to harbor ') {
steps {
sh '''
2024-01-10 21:56:49 +00:00
#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
2024-01-05 19:49:12 +00:00
'''
}
}
}
}