DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • While Performing Dependency Selection, I Avoid the Loss Of Sleep From Node.js Libraries' Dangers
  • Mastering Shift-Left: The Ultimate Guide to Input Validation in Jenkins Pipelines
  • 5 Best Node.js Practices to Develop Scalable and Robust Applications
  • Integrating Jenkins With Playwright TypeScript: A Complete Guide

Trending

  • Customer 360: Fraud Detection in Fintech With PySpark and ML
  • Designing a Java Connector for Software Integrations
  • 5 Subtle Indicators Your Development Environment Is Under Siege
  • How Can Developers Drive Innovation by Combining IoT and AI?
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Use a Given Version of Node.js on a Jenkins Project

Use a Given Version of Node.js on a Jenkins Project

One developer offers an overview of plugin that makes it easier to use the popular DevOps tool, Jenkins, with the equally popular Node.js.

By 
Catalin  Red user avatar
Catalin Red
·
Jan. 18, 19 · Review
Likes (2)
Comment
Save
Tweet
Share
19.5K Views

Join the DZone community and get the full member experience.

Join For Free

Like many others, we’re using Jenkins at my organization for tasks like testing or deploying some of our projects. Recently, I had to figure out a way to have a different Node.js version on a Jenkins project bound to a branch I was working on.

What Is Jenkins?

Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software. - Jenkins Docs

The Scenario

So I had a branch I was working on and needed a different Node.js version for that, mostly for trying out things, without risking having to change any other Jenkins project configuration.

Specifically, I had a branch with some tests based on Jest and Puppeteer that rely on async/await which is available from Node.js 7.6. Whilst the Node.js version installed on the Jenkins machine was lower than that, I needed a newer Node.js for my Jenkins project that my branch was bound to.

The solution I found was to install the Jenkins NodeJS Plugin, which already had some of the features and functionalities I was looking for.

Jenkins w/ Node.js given versionThe Jenkins project with a given Node.js 8.0 version.

So, what Jenkins NodeJS Plugin does is:

  • It allows you to create as many Node.js installations “profiles” as you want. Let’s say you could have some installations to play with like legacy 6x, 8x, or the latest stable Node.js.
  • It auto installs the given version of Node.js, on every Jenkins project where it will be needed.
  • It allows you to globally install some npm packages inside each Node.js installation and these npm packages will be made available to the PATH: those could be Gulp, Webpack, you name it.
  • It allows for the execution of Node.js scripts under the given Node.js installation.

That’s pretty much it, hope you find this useful!

Node.js Jenkins (software)

Published at DZone with permission of Catalin Red, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • While Performing Dependency Selection, I Avoid the Loss Of Sleep From Node.js Libraries' Dangers
  • Mastering Shift-Left: The Ultimate Guide to Input Validation in Jenkins Pipelines
  • 5 Best Node.js Practices to Develop Scalable and Robust Applications
  • Integrating Jenkins With Playwright TypeScript: A Complete Guide

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!