Configure NodeJs on Jenkins? - 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"
}

Related

Can't find Docker Plugin on Jenkins

I'm trying to build an image using docker.
Connecting with Jenkins, then moving to
Manage Jenkins > Plugins management, I don't found Docker plugin there.
Also, I tried Manage Jenkins > Global Tool Configuration, I can't see Docker Part as displayed bellow.
Could you please tell me what I missed ?.
Big thanks.
You can add that plugin using the download of docker-build-publish-1.3.2.hpi.
Then you have to restart Jenkins.
HTH
Download externally docker plugin which is .hpi file and place that file under /JENKINS_HOME/plugins folder
You could go to Manage Jenkins -> Manage Plugins -> search for docker in the search bar to the top right corner -> install docker.
You may choose to restart jenkins after the installation is complete. Once the docker plugin is fully installed, head over to Manage Jenkins -> Global Tool Configuration -> at the bottom you'll have docker available.

There is no AWS Codedeploy Plugin in Jenkins

I use two different Jenkins servers(tomcat jenkins) and i was trying to install a plugin for aws codedeploy.
However, I couldn't find it in the list of a Jenkins but another one has it.
Why the plugin libraries are different? even though i install them in a same way.
Also, How can i add a particular plugin in my Jenkins server?
Thank you.
Why the plugin libraries are different?
The plugin libraries shouldn't be different.
Which way did you search the plugin (jenkins gui, in the web)? Both your servers are on the same Jenkins version?
Also, How can i add a particular plugin in my Jenkins server?
I do it always via the GUI as described here: https://jenkins.io/doc/book/managing/plugins/

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

jenkins 2 dependency errors loading some plugins

I have a newly intalled jenkins v 2.36 on ubuntu 14.04 LTS. during the installation process jenkins installed all plugins except pipeline and got stuck on installation. After that i restarted jenkins with
service jenkins restart and was able to create new administrative user, Here is the screen shot of error on jenkins dashboard, the correct button doesnt fix this error.
what should i do to resolve this error ?
The error is
There are dependency errors loading some plugins:
Pipeline: Stage View Plugin v2.4
pipeline-rest-api v2.4 is missing. To fix, install v2.4 or later.
Pipeline v2.4
Pipeline: Stage View Plugin v2.4 failed to load. Fix this plugin first.
It is always good to install the plugin via "Manage Jenkins -> Plugin Manager" , so that the plugin will install its dependencies automatically.
But sometimes due to slow internet connection or other reasons, it fails to do automatically. In that case, we need to do it manually under the Manage Plugins -> Advances Option -> Upload plugin.
So, in your case, it is failing for the below two dependent plugins:
pipeline-rest-api v2.4 is missing. To fix, install v2.4 or later.
Please install the pipeline-rest-api plugin. Also, please install other dependent plugins too for safer side.
List of dependent plugins for any Jenkins plugin.:
https://plugins.jenkins.io/workflow-aggregator
https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Stage+View+Plugin
Helpful link jenkins_dependency_error that helped me solve this issue
Download the plugin from here latest pipeline.
Go to jenkins dashboard > Manage jenkins> Manage Plugin > [select Advanced Tab]
select upload plugin file (select the option "restart after installation" )

why jenkins source code management configuration none?

While i am trying to configure my project on jenkins. i need to provide git. but in source code management option default none. how to add git.
kindly some one help me, thank you
Read how to install a plugin: https://wiki.jenkins-ci.org/display/JENKINS/Plugins#Plugins-Howtoinstallplugins
Install the git plugin: https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
This worked for me.
Manage jenkins-> Manage plugins.
Search for "Subversion" plugin. Select the "Subversion" plugin from the list and and click on install and restart Jenkins.
Go to Job's configuration. Subversion should be listed under SCM (source code management.

Resources