Jenkins Tutorial – Build a Node JS and React Application using npm in a pipeline without Docker

Learn how to build a Node JS and React Application using npm in a jenkins pipeline without using Docker. Following will be covered in this video:
– Node JS Plugin
– Node JS and Jenkins Configuration
– Pipeline Script

Github – https://github.com/patebija/simple-node-js-react-npm-app.git

Pipeline Script:
pipeline {
agent any
tools {nodejs “node”}
stages {
stage(‘Build’) {
steps {
git ‘https://github.com/patebija/simple-node-js-react-npm-app.git’
bat ‘npm install’
}}}}

source by QASCRIPT

nodejs

Mourad ELGORMA

Fondateur de summarynetworks, passionné des nouvelles technologies et des métiers de Réseautique , Master en réseaux et système de télécommunications. ,j’ai affaire à Pascal, Delphi, Java, MATLAB, php …Connaissance du protocole TCP / IP, des applications Ethernet, des WLAN …Planification, installation et dépannage de problèmes de réseau informatique……Installez, configurez et dépannez les périphériques Cisco IOS. Surveillez les performances du réseau et isolez les défaillances du réseau. VLANs, protocoles de routage (RIPv2, EIGRP, OSPF.)…..Manipuler des systèmes embarqués (matériel et logiciel ex: Beaglebone Black)…Linux (Ubuntu, kali, serveur Mandriva Fedora, …). Microsoft (Windows, Windows Server 2003). ……Paquet tracer, GNS3, VMware Workstation, Virtual Box, Filezilla (client / serveur), EasyPhp, serveur Wamp,Le système de gestion WORDPRESS………Installation des caméras de surveillance ( technologie hikvision DVR………..). ,

7 réflexions sur “Jenkins Tutorial – Build a Node JS and React Application using npm in a pipeline without Docker

  • juin 11, 2021 à 11:58
    Permalien

    Hi @QASCRIPT,
    in this video we only have build section. How to deploy it in local server, means how to generate build folder(artifact)

    Répondre
  • juin 11, 2021 à 11:58
    Permalien

    Hi @QASCRIPT,
    In this video, we have a build section and you have mention how to deploy on a local machine but I have Jenkins on different server and deployment of node is on a different server can you help me in this?

    Répondre
  • juin 11, 2021 à 11:58
    Permalien

    Hi, This video is awesome.
    Please make video to explain how to choose nodejs version based on package.json.

    Répondre
  • juin 11, 2021 à 11:58
    Permalien

    stderr: fatal: unable to access 'https://github.com//……../': Error -50 setting GnuTLS cipher list starting with +VERS-TLS1.3

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:802)
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1182)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1260)
    at hudson.scm.SCM.checkout(SCM.java:505)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:637)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:509)
    at hudson.model.Run.execute(Run.java:1894)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:428)
    ERROR: Error cloning remote repo 'origin'
    Finished: FAILURE

    Répondre
  • juin 11, 2021 à 11:58
    Permalien

    When run "npm run build" from execute shell script section, it creates build of react app but i am unable to click on any button, all button are stops working (click not working) inside react app

    Répondre

Laisser un commentaire