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

Add jenkins 1.596 #8860

Merged
merged 1 commit into from
Jan 13, 2015
Merged

Add jenkins 1.596 #8860

merged 1 commit into from
Jan 13, 2015

Conversation

jawshooah
Copy link
Contributor

Jenkins installer for Mac.

The preflight, binary and postflight stanzas are certainly up for discussion. The intent is to provide a CLI equivalent to the one provided through brew install jenkins. I did something similar in #8279.

The pkg does install a script /Library/Application Support/Jenkins/jenkins-runner.sh, which the launchctl job calls, but it reads arguments from /Library/Preferences/org.jenkins-ci.plist rather than allowing the user to pass them in.

@jawshooah
Copy link
Contributor Author

There's a problem; at the moment, zap fails if the cask has already been uninstalled because the uninstall script no longer exists. Not sure how to work around that.

Edit: This actually seems like a general problem with uninstaller scripts. Is there an issue around this already?

@vitorgalvao
Copy link
Member

We’re don’t usually create those types of scripts. We shy away from them as much as possible, actually. If the one provided upstream is insufficient, that’s something we should solve there, as a cask installation should be as vanilla as possible (sometimes small tweaks are necessary because the process would be broken otherwise).

On another note, isn’t there a :pkgutil we could add to uninstall? :script is useful, but should always be used in addition to the other processes, not in replacement of.

zap fails if the cask has already been uninstalled because the uninstall script no longer exists.

Nice catch.

This actually seems like a general problem with uninstaller scripts. Is there an issue around this already?

I don’t think there is, but you’ve been finding a lot of broken stuff with the uninstall process, recently, so perhaps we should collect everything in a single issue.

@jawshooah
Copy link
Contributor Author

We don’t usually create those types of scripts. We shy away from them as much as possible, actually.

Understood, I'll remove the jenkins.sh script. How about this, instead:

binary '/Library/Application Support/Jenkins/jenkins-runner.sh', :target => 'jenkins'

On another note, isn’t there a :pkgutil we could add to uninstall?

Yes, and also :launchctl. Before I discovered the uninstall script, I was using both. I'll add them in.

@vitorgalvao
Copy link
Member

How about this, instead

Perfectly acceptable (last sentence).

vitorgalvao added a commit that referenced this pull request Jan 13, 2015
@vitorgalvao vitorgalvao merged commit 533345a into Homebrew:master Jan 13, 2015
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants