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:20:25 +00:00
|
|
|
sudo npm install
|
2024-01-10 17:19:42 +00:00
|
|
|
#sudo npm run build
|
2024-01-05 19:49:12 +00:00
|
|
|
#sudo docker build -t bbuddy/bbuddy_backend-dev:latest .
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Push image to harbor ') {
|
|
|
|
steps {
|
|
|
|
sh '''
|
2024-01-05 19:52:46 +00:00
|
|
|
#
|
2024-01-05 19:49:12 +00:00
|
|
|
#sudo docker login https://harbor-wtkp3fsbv6.vertexa.devbay.tech/ -u 'robot$jenkins' -p 'ZrzsVIAeueW1p0alpAnPfM5CDtaRVVKz'
|
|
|
|
#sudo docker tag bbuddy/bbuddy_backend-dev:1.0.0 harbor-wtkp3fsbv6.vertexa.devbay.tech/bbuddy/bbuddy-ui:latest
|
|
|
|
#sudo docker push harbor-wtkp3fsbv6.vertexa.devbay.tech/bbuddy/bbuddy-ui:latest
|
|
|
|
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|