Dependency Graph plugin jenkins doesn't work - jenkins

I've installed Graphviz and necessary plugins for Jenkins to run Dependency graph plugin, but when I click on Dependency Graph, it doesn't show me anything, I don't know where is the problem, my Jenkins is v2.32.1, thank you very much

In my case I hadn't graphviz in my system.
I solve my issue running the following command (ubuntu 16.04.03):
sudo apt-get install graphviz
No reboot was required on jenkins and than the dependency graph worked as expected.

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

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 and Phabricator integration

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

Cloudbees Jenkins job cannot install packages via Yum

I have Jenkins running on a Cloudbees Fedora 17 node. I need my job to be able to install certain packages to build my project correctly for deployment but my yum install commands fail because the jenkins user does not have the correct permissions.
I cannot SSH into the box or use the jenkins CLI to assign root permissions to use sudo and Cloudbees doesn't appear to enable the Script Console. Neither can I run the yum command as with su because it expects the administrator password which I cannot enter remotely.
What can I do?
I am not aware that you can install additional software on the CloudBees Jenkins master node. But you can request from CloudBees support that additional software packages will be installed on the automatically created CloudBees build nodes.
As alternative you can also create your own build nodes (called OPE in CloudBees). This is helpful for a lot of cases such as specific software requirements (such as closed source software which requires a license) or just to be much more flexible when it comes to require packages installed on it.
Since you didn't mention what kind of packages are missing: There are a lot of frameworks that provide much more ruby, java, python, go etc. versions as any Linux distribution. CloudBees provides documentation for a lot of them on http://dev-at-cloud-docs.cloudbees.com/docs/dev-at-cloud-docs-1.1/Build+Tools.html
This is the problem with hosted solutions like what Cloudbees offers. If you need access to operating system level permissions on the host server, then you have little choice but to host Jenkins yourself, or to obtain a different licensing structure with CloudBees in order to have a VPS, or some other isolated but still SaaS hosted solution.

Installing a package on container-based Travis instance

I am trying to install a couple of dependency packages for testing my code on Travis-CI. I am an education user, so all my builds get sent to a container-based instance. Because it is container-based, I cannot use sudo to install the packages. Is there a workaround for this?
Sort of.
Through the apt_packages addon, you can specify additional packages to be installed with your .travis.yml file.
addons:
apt_pacakges:
- lib32stdc++6
You can only installed packages that are on the whitelist.

Resources