Project

General

Profile

Actions

Task #10865

closed

New Feature #10647: UI Components Modularization

Create jenkins flow for UI modularization

Added by Oshani Silva 2 months ago. Updated 11 days ago.

Status:
Closed
Priority:
Low
Start date:
03/12/2024
Due date:
03/21/2024
% Done:

100%

Estimated time:
Type:

Files

ui-components-Jenkins-.png (141 KB) ui-components-Jenkins-.png Pramila Niroshan, 04/17/2024 05:32 PM
Actions #1

Updated by Oshani Silva 2 months ago

  • Tracker changed from New Feature to Task
Actions #2

Updated by Inosh Perara about 2 months ago

  • Priority changed from None to Low
Actions #3

Updated by Pramila Niroshan about 1 month ago

http://builder.entgra.io/job/ui-components/

pipeline {
    agent any

    tools {
        nodejs "node version 20.11.1" 
    }
    stages {
        stage('Remove Existing npm Configuration') {
            steps {
                sh 'npm config delete registry --global'
                sh 'npm config delete _authToken --global'
            }
        }
        stage('Checkout') {
            steps {
                // Checkout the repository using credentials
                git branch: 'main', credentialsId: 'c007f796-c6ce-4c58-bb61-377293b5473b', url: 'https://repository.entgra.net/proprietary/ui-components.git'
            }
        }
         stage('Write .npmrc') {
            steps {
                sh '''
                    echo 'always-auth=true' > .npmrc
                    echo '//nexus.entgra.io/repository/npm-releases/:_auth=bnBtLWRlcGxveWVyOlB3ZmcyMzQ2UUg=' >> .npmrc
                '''
                sh 'cat .npmrc'
            }
        }
        stage('Install') {
            steps {
                sh 'npm install'
            }
        }
        stage('Install Rimraf') {
            steps {
                sh 'npm install rimraf'
            }
        }
        stage('Build') {
            steps {
                sh 'npm run build'
            }
        }
        stage('Publish to Nexus') {
            steps {
                sh "npm publish" 
            }
        }
    }
}

Actions #4

Updated by Arshana Atapattu 11 days ago

  • Status changed from QA to Closed

Closing as the pipeline completed

Actions

Also available in: Atom PDF