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

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

Build:
Build:
LAST BUILD BRANCH: PR-154
DEFAULT BRANCH: master
Ran 06 Sep 2020 06:20PM UTC
Files 22
Run time 2s
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

06 Sep 2020 06:17PM UTC coverage: 42.871% (-39.7%) from 82.564%
14.2

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`

457 of 1066 relevant lines covered (42.87%)

0.43 hits per line

Source Files on job 14.2
  • Tree
  • List 0
  • Changed 22
  • Source Changed 22
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 14
  • 86331db5 on github
  • Prev Job for on release/1.x (#13.2)
  • Next Job for on release/1.x (#16.2)
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