Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible Jenkins macos10.x machines challenges #3119

Closed
UlisesGascon opened this issue Dec 17, 2022 · 2 comments · Fixed by #3130
Closed

Ansible Jenkins macos10.x machines challenges #3119

UlisesGascon opened this issue Dec 17, 2022 · 2 comments · Fixed by #3130

Comments

@UlisesGascon
Copy link
Member

When We were working on #3112, I discovered that Ansible scripts are not working properly for macos10.14 and macos10.15.

The first time I tried to run the script I got an error related to brew cask:

TASK [package-upgrade : Add AdoptOpenJDK Java Repo] *********************************************************************************************************
ok: [test-orka-macos10.14-x64-2]

TASK [package-upgrade : Update Casks]  

...
Deleted Formulae\npython\n\nYou have 12 outdated formulae and 1 outdated cask installed.\nYou can upgrade them with brew upgrade\nor list them with brew outdated.\n\nError: `brew cask` is no longer a `brew` command. Use `brew <command> --cask` instead."}

In the next attempt the script stops at this stage:

Captura de Pantalla 2022-12-17 a las 11 05 24

I can confirm that the playbook works perfect for macos11 machines.

@UlisesGascon UlisesGascon changed the title Ansible Jenkins macos machines challenges Ansible Jenkins macos10.x machines challenges Dec 17, 2022
@targos
Copy link
Member

targos commented Dec 18, 2022

I'm pretty sure that's because of #3087

@UlisesGascon
Copy link
Member Author

Captura de Pantalla 2022-12-20 a las 11 41 19

I will need to patch Ansible to ignore this error. The upgrade still working (manually tried), but we need to ignore this error due deprecation

UlisesGascon added a commit to UlisesGascon/build that referenced this issue Dec 20, 2022
UlisesGascon added a commit that referenced this issue Dec 21, 2022
Context: #3119 (comment)

Ignore failure for brew Upgrade installed packages step in mac10.x due deprecation (`You are using macOS 10.14.\nWe (and Apple) do not provide support for this old version.`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants