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

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

Build:
Build:
LAST BUILD BRANCH: PR-154
DEFAULT BRANCH: master
Ran 06 Sep 2020 06:17PM UTC
Jobs 4
Files 22
Run time 719713min
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
14

push

jenkins

Add support for custom arguments for the build player task (#67)

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

The `UnityBuildPlayerTask` provides special UBS arguments with a special
commandline flag `-CustomArgs` and a single long value with multiple
arguments enoded as "key=value;". There was no dynamic way of adding
values to this flag. This patch adds a new property `customArguments` to
both `UnityBuildPlayerTask` and the `unityBuild` extension. The type of
this property is a simple `Map`. Values provided in the extension will
be configured for all export tasks unless they override this property.

```groovy
unityBuild {
    customArguments = ["value1" : "some value", "aFile": new File("/some/file")]
}
```

```groovy
gradle.taskGraph.whenReady {
  tasks.withType(wooga.gradle.build.unity.tasks.UnityBuildPlayerTask) { t ->
    if(t.buildPlatform == "android") {
      t.customArguments = ['foo':'bar']
    }
  }
}
```

Both key and values of the map will be converted to `String` during
encoding. So custom types with a `toString` implementation are possible.
Be aware that string values with newlines or other special characters
could execute undifined behavior and is also untested at the moment.

Changes
=======

* ![ADD] custom arguments support for `UnityBuildPlayerTask`

883 of 1066 relevant lines covered (82.83%)

0.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14.1 06 Sep 2020 06:17PM UTC 0
82.65
2 14.2 06 Sep 2020 06:20PM UTC 0
42.87
3 14.3 06 Sep 2020 06:21PM UTC 0
42.87
4 14.4 19 Jan 2022 01:31PM UTC 0
38.67
Source Files on build 14
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #14
  • 86331db5 on github
  • Prev Build on release/1.x (#13)
  • Next Build on release/1.x (#16)
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