2 Commits

Author SHA1 Message Date
357b50dfa4 Merge pull request 'utilisation des credentials' (#32) from pipeline10 into main
All checks were successful
Organisation/sirh/pipeline/head This commit looks good
Reviewed-on: #32
2026-05-04 09:52:26 +00:00
bda80fae85 utilisation des credentials
Some checks are pending
Organisation/sirh/pipeline/head This commit looks good
Organisation/sirh/pipeline/pr-main Build queued...
2026-05-04 09:51:25 +00:00

8
Jenkinsfile vendored
View File

@@ -2,6 +2,11 @@ pipeline
{
agent any
environment
{
SUDO_PASSWORD = credentials('sudo-password')
}
stages
{
stage ( 'checkout' )
@@ -17,8 +22,9 @@ pipeline
when { branch 'main' }
steps {
sh '''
echo $SUDO_PASSWORD
cd /jenkins_test/sirh
"sylla" | sudo -S chown -R jenkins:jenkins /jenkins_test/sirh
echo $SUDO_PASSWORD | sudo -S chown -R jenkins:jenkins /jenkins_test/sirh
git pull origin main
python3 -m venv venv
. venv/bin/activate