Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
khylpe committed Aug 26, 2024
1 parent dbe410f commit d26c78f
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ pipeline {
// }
// }

// stage('Retrieve .env files') {
// steps {
// sh 'cp /srv/aio-tools/secure_ressources_relationnelles/.env .env'
// sh 'cp /srv/aio-tools/secure_ressources_relationnelles/backend/.env backend/.env'
// sh 'cp /srv/aio-tools/secure_ressources_relationnelles/frontend/.env frontend/.env'
// sh 'chmod 644 backend/.env'
stage('Retrieve .env files') {
steps {
sh 'cp /srv/aio-tools/secure_ressources_relationnelles/.env .env'
sh 'cp /srv/aio-tools/secure_ressources_relationnelles/backend/.env backend/.env'
sh 'cp /srv/aio-tools/secure_ressources_relationnelles/frontend/.env frontend/.env'
sh 'chmod 644 backend/.env'

// // Update the frontend .env file
// sh '''
// sed -i "s|https://cube.aio-tools.com/api|http://91.108.112.237:$BACKEND_PORT/api|" frontend/.env
// '''
// }
// }
// Update the frontend .env file
sh '''
sed -i "s|https://cube.aio-tools.com/api|http://91.108.112.237:$BACKEND_PORT/api|" frontend/.env
'''
}
}

// stage('Build Docker Containers') {
// steps {
Expand Down Expand Up @@ -87,13 +87,15 @@ pipeline {
post {
success {
echo 'Build and tests succeeded!'
sh 'cd /srv/aio-tools/ressources_relationnelles'
sh 'ls -la'

dir('/srv/aio-tools/') {
echo 'Build and tests succeeded!'
sh '''
ls -la
'''
}
// dir('/srv/aio-tools/') {
// echo 'Build and tests succeeded!'
// sh '''
// ls -la
// '''
// }

// dir('/srv/aio-tools/ressources_relationnelles') {
// echo 'Build and tests succeeded!'
Expand Down

0 comments on commit d26c78f

Please sign in to comment.