Actions
Task #10865
closedNew Feature #10647: UI Components Modularization
Create jenkins flow for UI modularization
Start date:
03/12/2024
Due date:
03/21/2024
% Done:
100%
Estimated time:
Type:
Files
Updated by Pramila Niroshan about 1 month ago
- File ui-components-Jenkins-.png ui-components-Jenkins-.png added
- Status changed from New to QA
- % Done changed from 0 to 100
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"
}
}
}
}
Updated by Arshana Atapattu 11 days ago
- Status changed from QA to Closed
Closing as the pipeline completed
Actions