Commit 104f2fd5 authored by Matyáš Latner's avatar Matyáš Latner

#653 Unlock iOS keychain at GitLab CI build start

parent cd86e22a
......@@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
before_script:
- security unlock-keychain -p jenkins /Users/jenkins/Library/Keychains/login.keychain
- ./gradlew unlockIOSKeyChain
- git submodule update --init --recursive
stages:
......
......@@ -283,6 +283,16 @@ task processAssets(dependsOn: [':util:checksum:runChecksum', ':util:checksum:run
}
}
task unlockIOSKeyChain() << {
if (project.hasProperty('TABLEXIA_KEYCHAIN_USER') && project.hasProperty('TABLEXIA_KEYCHAIN_PATH')) {
exec {
commandLine 'security', 'unlock-keychain', '-p', TABLEXIA_KEYCHAIN_USER, TABLEXIA_KEYCHAIN_PATH
}
} else {
println "CANNOT UNLOCK KEYCHAIN -> TABLEXIA_KEYCHAIN_USER OR TABLEXIA_KEYCHAIN_PATH BUILD VARIABLE IS NOT SET!"
}
}
def getPropertyValueOrFallbackValue(String key, String fallbackValue) {
return project.hasProperty(key) ? project.getProperties().get(key) : fallbackValue
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment