bbuddy-ui/Jenkinsfile

30 lines
939 B
Plaintext
Raw Normal View History

2024-01-05 19:49:12 +00:00
pipeline {
agent { label 'jenkins-nodejs-agent' }
2024-07-17 19:48:15 +00:00
environment {
2024-07-24 13:53:32 +00:00
RELEASE = "0.0.2"
2024-07-17 19:48:15 +00:00
}
2024-01-05 19:49:12 +00:00
stages {
stage('Build static content') {
steps {
sh '''
2024-07-17 19:58:08 +00:00
#npm install
#npm run build
#pwd
#echo
2024-07-17 19:48:15 +00:00
docker build --progress=plain -t bbuddy/bbuddy_ui:${RELEASE} .
2024-01-05 19:49:12 +00:00
'''
}
}
stage('Push image to harbor ') {
steps {
sh '''
2024-01-10 23:17:45 +00:00
sudo docker login https://harbor-wtkp3fsbv6.vertexa.devbay.tech/ -u 'robot$jenkins' -p 'ZrzsVIAeueW1p0alpAnPfM5CDtaRVVKz'
2024-07-17 19:48:15 +00:00
sudo docker tag bbuddy/bbuddy_ui:${RELEASE} harbor-wtkp3fsbv6.vertexa.devbay.tech/bbuddy/bbuddy_ui:${RELEASE}
sudo docker push harbor-wtkp3fsbv6.vertexa.devbay.tech/bbuddy/bbuddy_ui:${RELEASE}
2024-01-05 19:49:12 +00:00
'''
}
}
}
2024-07-17 19:48:15 +00:00
}