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

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

Build:
Build:
LAST BUILD BRANCH: PR-154
DEFAULT BRANCH: master
Ran 11 Nov 2020 11:24AM UTC
Files 31
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

11 Nov 2020 11:22AM UTC coverage: 27.025% (-1.0%) from 27.985%
22.3

push

jenkins

Add XcodeArchive task (#76)

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

This patch adds the first task of type `XcodeArchive`. This task is a
rewrite of the old `XCodeArchiveTask` located in the
`net.wooga.build-unity-ios` plugin. Its split into a gradle task object
with only the interface and an generic xcodebuild action type to execute
arbitary xcodebuild commands. All task properties are implemented with
gradles `Provider` API to make lazy configuration easier.

Build arguments
---------------

I also added a way to pass arbitary arguments to `xcodebuild`. Some
arguments are already mapped to properties but if in need additional
ones can be provided. The convinent methods `buildArgument` and
`buildArguments` will append the provided values to the argument list.
To clear the additional arguments simple call the setter with an empty
list.

> Note: This wont delete the arguments generated from the task
properties only the additional arguments. The list is empty by default.

```groovy
task customExport(type: ${XcodeArchive.name}) {
    scheme = "${xcodeProject.schemeName}"
    baseName = "custom"
    version = "0.1.0"
    projectPath = new File("${xcodeProject.xcodeProject.path}")

    //append a single argument
    buildArgument("-quiet")

    //append multiple arguments
    buildArguments("-enableAddressSanitizer", "YES")
    buildArguments(["-enableThreadSanitizer", "NO"])

    //removal all additonal arguments
    additionalBuildArguments = []
}
```

Build settings
--------------

The `xcodebuild` command allows to override build settings in the
project by adding these to the invocation in the form of
`[<buildsetting>=<value>]`. (eg. `OTHER_CODE_SIGN_FLAGS=--keychain some/path`)
These build settings can be passed as build arguments. I created a small
abstraction to make configuring these special values easier. Xcode knows
some [937](https://xcodebuildsettings.com/) settings and it would be possible to generate a stat... (continued)

347 of 1284 relevant lines covered (27.02%)

0.27 hits per line

Source Files on job 22.3
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22
  • e880a12f on github
  • Prev Job for on release/1.x (#21.2)
  • Next Job for on release/1.x (#23.1)
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