Jenkins and Phabricator integration - jenkins

I am new to jenkins and need to integrate it with phabricator.
I installed jenkins but when I tried to configure it, I can't find Phabricator Section.
It is mentioned that arcanist needs to be installed on jenkins nodes, but I don't know how to do that.
Can anybody help me out?
Here's the repo: https://github.com/uber/phabricator-jenkins-plugin
Thanks in advance.

Also to install Arcanist you can follow the Quick Start here.
If you are running Jenkins on a linux server you can quickly install with the command:
sudo apt install arcanist
Afterwards you can use the Manage Jenkins button on the sidebar to navigate to the Plugins Manager page to install the Phabricator Differential plugin seen here

Related

Cannot install plugins on Jenkins

I'm new to Jenkins and am trying to get a simple pipeline setup and struggling with the plugins page. I want to install the Azure credentials plugin but in the Plugin Manager page, when I select the plugin checkbox, there is no "Install" button so I don't know what to do next.
Tried on latest Chrome and Firefox with same issue. No errors in the console.
I looked at the documentation and it does not describe any reasons why the buttons won't appear. I am unsure if this is a bug or a problem with the documentation.
I am running v2.249.1 LTS version on Windows Server 2016.
Because this issue seems to be present in both 2.235.1 as ell as 2.260, the weekly release, I would recommend using the Jenkins CLI in the meantime. You can find the documentation here: https://www.jenkins.io/doc/book/managing/cli/ - I just used it and it works well. Do not forget to download the jenkins-cli.jar file as well as generted an API token.
wget https://localhost:8080/jnlpJars/jenkins-cli.jar
I have the same bug here, try Jenkins 2.249.1 fresh installation using ubuntu 20.04 and cannot install plugin from web UI https://prnt.sc/uudmrw
So I downgrade jenkins to older version to version 2.235.1, now I can install plugin from web ui https://prnt.sc/uue9tl
sudo apt-get install jenkins=2.235.1

Configure NodeJs on Jenkins?

I installed the NodeJS plugin 1.3.7 on an installation of Jenkins 2.235.2. After restarting Jenkins I see the NodeJS options on job configuration screens, but there is nothing on the Jenkins configuration screen that makes any mention of Node, so I am not able to add any installations for the jobs to use. I've found several sources that say that clicking Check now on the Advanced tab of the Plugin Manager screen will solve this, but that has had no effect. Can anyone suggest what else I might try to be able to add Node installations, or explain what I'm missing?
Go to Manage Jenkins >> Global tool configuration
and configure node there according to you
and in your jenkinsfile use
tools {
nodejs "nodejs-2.x"
}

Install Chromium on Jenkins Nodes

I have a project which runs karma tests and need chromium-browser binary. For testing purposes I've manually install it with apt install but now that it is working I'll like to have an automatic way to install it on any Jenkins slave.
I've tried chromedriver-plugin but it doesn't seem to work and not maintained for over 2 years.
you can use the slave setup plugin
it will install the chromium-browser on the startup process. another option is to add the installation to the relevant job , and install the package only if it's not installed already.
BTW , how many slaves you have , did you install them manually or automatically ?

Jenkins re-run setup wizard

Just installed latest Jenkins on Windows server.
Changed it to run as a service and my login no longer works. No problems, disable security for now.
But found out all my plug-ins are missing.
How can I have it rerun the setup wizard?
As seen in issue 310, you need on the server side to remove:
/usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state
/usr/share/jenkins/ref/jenkins.install.InstallUtil.lastExecVersion
(Search those files on your Windows Jenkins installation folder, to adapt those paths accordingly)
And you would relaunch Jenkins with -Djenkins.install.runSetupWizard=true
I installed Jenkins through apt and my solution was a little different.
For Jenkins v2.140 I had to edit /var/lib/jenkins/config.xml and change the following line:
<installStateName>NEW</installStateName>
to
<installStateName>RUNNING</installStateName>
then restart Jenkins:
sudo service jenkins restart
Here is everything above in a script:
#! /bin/bash
sudo sed -i 's#<installStateName>NEW.*#<installStateName>RUNNING<\/installStateName>#g' /var/lib/jenkins/config.xml
sudo service jenkins restart
Please note you will have to install all plugins and create users manually. I used the Jenkins CLI

Is there a way to install the ios-universal-framework on a cloudbees spawned Jenkins slave?

Using a Master Jenkins on premises, and the cloudbees plugin, I am able to kick off iOS builds to a cloud bees instance. It's pretty sweet.
My IOS developers require cloning the ios-universal-framework repo, and then running an install.sh script contained within that repo. Everything works fine until the script issues a "sudo" command to copy files into the directory
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications"
The cp command needs sudo privileges. I'm thinking this is not possible but since I'm on the free trial plan, this is where I can find support. Thanks to all for reading.
Tony

Resources