mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Update infrastructure to use the new transifex API.
- Fix Jenkins warnings about leaked credentials. - Fix one script not loading utf-8 on windows. - Fix command line arguments not working when inlined on Linux. This was SVN commit r27621.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2019 Wildfire Games.
|
||||
/* Copyright (C) 2023 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -41,11 +41,15 @@ pipeline {
|
||||
steps {
|
||||
ws('/zpool0/translations') {
|
||||
withDockerContainer("0ad-translations:latest") {
|
||||
sh "python3 --version"
|
||||
sh "python3 source/tools/i18n/updateTemplates.py"
|
||||
withCredentials([string(credentialsId: 'redacted', variable: 'token')]) {
|
||||
sh 'TX_TOKEN="$token" python3 source/tools/i18n/pullTranslations.py'
|
||||
}
|
||||
dir("source/tools/i18n/") {
|
||||
sh "./maintenanceTasks.sh"
|
||||
sh "python3 generateDebugTranslation.py --long"
|
||||
}
|
||||
sh "python3 source/tools/i18n/cleanTranslationFiles.py"
|
||||
sh "python3 source/tools/i18n/checkDiff.py --verbose"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -55,14 +59,13 @@ pipeline {
|
||||
steps {
|
||||
ws('/zpool0/translations') {
|
||||
withCredentials([usernamePassword(credentialsId: 'redacted', passwordVariable: 'SVNPASS', usernameVariable: 'SVNUSER')]) {
|
||||
sh "svn relocate --username ${SVNUSER} --password ${SVNPASS} --no-auth-cache https://svn.wildfiregames.com/svn/ps/trunk"
|
||||
sh "svn commit --username ${SVNUSER} --password ${SVNPASS} --no-auth-cache --non-interactive -m '[i18n] Updated POT and PO files.'"
|
||||
sh 'svn relocate --username $SVNUSER --password $SVNPASS --no-auth-cache https://svn.wildfiregames.com/svn/ps/trunk'
|
||||
sh 'svn commit --username $SVNUSER --password $SVNPASS --no-auth-cache --non-interactive -m "[i18n] Updated POT and PO files."'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
sleep 10
|
||||
|
||||
Reference in New Issue
Block a user