29 lines
881 B
Plaintext
29 lines
881 B
Plaintext
|
pipeline {
|
||
|
agent { label 'jenkins-nodejs-agent' }
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
stages {
|
||
|
stage('Build static content') {
|
||
|
steps {
|
||
|
sh '''
|
||
|
sudo npm install
|
||
|
sudo npm run build
|
||
|
sleep 100000000
|
||
|
#sudo docker build -t bbuddy/bbuddy_backend-dev:latest .
|
||
|
'''
|
||
|
}
|
||
|
}
|
||
|
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_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
|
||
|
|
||
|
'''
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|