Executing builds by agent without need of docker? (windows/mac/ios builds) (OD-1979)
wojtek opened 2 years ago

Is it possible to make builds on dedicated platforms without specifying docker image?

It works fine for linux (or building java in general) but for native builds (for example kotlin) it seems problematic:

  1. temurin only provides windowsserver based images (https://hub.docker.com/_/eclipse-temurin: "This image is based on Windows Server Core (microsoft/windowsservercore). As such, it only works in places which that image does, such as Windows 10 Professional/Enterprise (Anniversary Edition) or Windows Server 2016.")
  2. for macos there doesn't seem to be jdk base images... there is a project https://hub.docker.com/r/sickcodes/docker-osx which supposedly allows building iOS projects.

tl,dr; is it somehow possible to run builds without the requirements of the container?

  • jbauer commented 2 years ago

    In global configuration you can create a new job executer of type "remote shell executor". It will run shell scripts using the same permissions as the agent process. Then in your job definition you select that executor and in the step "execute command" you deactivate "run in container" if that option is still shown for a remote shell executor.

    You then need to group your agents so you have agents available for each platform you need.

  • Robin Shen commented 2 years ago

    Yes, just as @jbauer mentioned, create appropriate remote job executors matching desired agents, and use that executor in your job definition.

  • Robin Shen changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-1979
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover