2024-01-05 19:49:12 +00:00
|
|
|
pipeline {
|
|
|
|
agent { label 'jenkins-nodejs-agent' }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build static content') {
|
|
|
|
steps {
|
|
|
|
sh '''
|
2024-01-10 17:21:46 +00:00
|
|
|
npm install
|
|
|
|
npm run build
|
2024-01-10 17:54:53 +00:00
|
|
|
echo
|
2024-01-10 17:49:24 +00:00
|
|
|
docker build -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
|
|
|
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|