1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2024-09-17 10:11:07 +03:00
parent e0ba32d6a9
commit 366ad63d66
19 changed files with 4710 additions and 4730 deletions
+12 -22
View File
@@ -522,35 +522,25 @@ pipeline {
}
}
stage('Finish'){
steps{
}
post{
always{
script {
withCredentials([string(credentialsId: 'gpgkey', variable: 'GPGKEY')]) {
bat encoding: 'UTF-8', script:'del ./data.json.gpg'
bat encoding: 'UTF-8', script:'"C:/Program Files (x86)/GnuPG/bin/gpg.exe" --batch --symmetric --cipher-algo AES256 --passphrase="%GPGKEY%" ./data.json'
bat encoding: 'UTF-8', script:'del ./data.json'
}
withCredentials([gitUsernamePassword(credentialsId: 'gitmain', gitToolName: 'Default')]) {
bat "git config user.email vitaly.the.alpaca@gmail.com"
bat 'git config user.name "Vitaly the Alpaca (bot)"'
bat "git config --global core.ignorecase true"
bat "git add ."
bat 'git commit -m "Test data update (Jenkins)"'
bat "git push origin HEAD:main"
}
}
}
}
stage('Update GIT') {
steps {
script {
withCredentials([gitUsernamePassword(credentialsId: 'gitmain', gitToolName: 'Default')]) {
bat "git config user.email vitaly.the.alpaca@gmail.com"
bat 'git config user.name "Vitaly the Alpaca (bot)"'
bat "git config --global core.ignorecase true"
bat "git add ."
bat 'git commit -m "Test data update (Jenkins)"'
bat "git push origin HEAD:main"
}
}
}
}
}
}