Merge branch 'develop' of ssh://git.davinti.com.br:2222/davinTI/app-dono-modulos into develop
davinTI/app-dono-modulos/pipeline/head This commit looks good

This commit is contained in:
2026-03-02 11:21:24 -03:00
Vendored
+23 -3
View File
@@ -2,18 +2,28 @@ pipeline {
agent {
docker {
image 'hub.davinti.com.br:443/infra/node:latest'
args '-u root'
args '-u 1001:1001 --rm --entrypoint="" -e HOME=${WORKSPACE}'
}
}
environment {
S3_BUCKET = "s3://app-dono-manifests"
GIT_TOKEN = credentials('gitea-pat')
}
stages {
stage('Install') {
steps {
sh 'npm install'
sh """
# Create a .netrc file so Git can find the PAT for your Gitea domain
echo "machine git.davinti.com.br" > ~/.netrc
echo "login jenkins" >> ~/.netrc
echo "password ${GIT_TOKEN}" >> ~/.netrc
chmod 600 ~/.netrc
npm install
"""
}
}
@@ -44,7 +54,17 @@ pipeline {
post {
always {
echo "Finished build for ${env.BRANCH_NAME}"
sh 'rm -rf *'
script {
deleteDir()
}
}
success {
echo "✨ Manifest successfully uploaded to S3!"
}
failure {
echo "❌ Build failed. Check the logs for Jeff's validation errors."
}
}
}