• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wooga / atlas-build-unity / 3
25%
master: 78%

Build:
Build:
LAST BUILD BRANCH: PR-154
DEFAULT BRANCH: master
Ran 21 Jul 2020 09:30AM UTC
Jobs 5
Files 77
Run time 684097min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3

push

jenkins

Add secrets resolver base setup (#58)

Description
===========

This is a pretty huge patch and implements the basic tools needed to
fetch and pass secrets to Unity. The patch [#105] is introducing a new
configuration field called `secrets` to the `AppConfig`. The fields
intention is to declare all secretIds needed byt the `AppConfig`.
This patch implements the basic workflow to read the secretsIds, fetch
the secrets through a `SecretResolver` and pass them to Unity via
environment variables (this is the plan for the first implementation).

FetchSecrets
------------

I added a new task type `FetchSecrets` and configured tasks for all
found `AppConfig` files in the `AppConfig` lookup directory. This means
every `UnityBuildPlayerTask` generated from the plugin will have a
corresponding `FetchSecrets` task as a direct dependency. (I might
change this setup so any task of `UnityBuildPlayerTask` gets a fetch
secret task assigned)

The `FetchSecrets` task will read the list of configured secrets in the
`AppConfig` and pass them to a configured resolver of type
`SecretResolver`. There is no default implementation available at the
moment. Only the integration tests provide some mock resolvers. If no
resolver is set or no secret ids are configured the task will create an
empty output.

The output of the `FetchSecrets` file is a serialized yaml version of
an object the new helper class type `Secrets`. This class handles
unencrypted secrets and encrypts them before serializing to disk.

e.g.

```yml
!secrets
secrets:
  net.wooga.testCredential: !encryptedSecretText
    secretValue: xllADGqYIK5h3go11IMfx8Iv0eH6UHhukv9sH6VrO4bggTXU+54HUhjR/29Bojvq
  net.wooga.testCredential2: !encryptedSecretText
    secretValue: AZ5nk3W6sogqFz/w82iZkA4pcGHKEmZpWbM7Cvgd+xsJCtEL6sTP+UGtUDaDh0dt
  net.wooga.testCredential3: !encryptedSecretFile
    secretValue: !!binary |-
      o+nF/o+R7jTy9q5aLfUsJ0WjXVl5hwVuykjr/G9zJVtweA7e+c/1HEjkR4f398... (continued)

993 of 2032 relevant lines covered (48.87%)

1.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.1 21 Jul 2020 09:30AM UTC 0
84.4
2 3.2 21 Jul 2020 09:34AM UTC 0
49.27
3 3.3 21 Jul 2020 09:35AM UTC 0
49.27
4 3.4 04 Oct 2021 11:08AM UTC 0
22.06
5 3.5 08 Nov 2021 11:07AM UTC 0
35.22
Source Files on build 3
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #3
  • 3d521735 on github
  • Prev Build on release/1.x (#2)
  • Next Build on release/1.x (#4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc