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

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

Build:
Build:
LAST BUILD BRANCH: PR-154
DEFAULT BRANCH: master
Ran 11 Nov 2020 11:22AM UTC
Jobs 4
Files 31
Run time 643640min
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
22

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)

1091 of 1284 relevant lines covered (84.97%)

1.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22.1 11 Nov 2020 11:22AM UTC 0
84.81
2 22.2 11 Nov 2020 11:23AM UTC 0
27.02
3 22.3 11 Nov 2020 11:24AM UTC 0
27.02
4 22.4 01 Feb 2022 10:43AM UTC 0
38.52
Source Files on build 22
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #22
  • e880a12f on github
  • Prev Build on release/1.x (#21)
  • Next Build on release/1.x (#23)
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