Git Product home page Git Product logo

artifact-creator's Introduction

artifact-creator

Prerequisite: Node 12.x ( will not work with 14, 10 etc.. ) Use NVM to install node 12.

This helps to create support artifacts for the update-artifacts repo and provide an easy way to add them during the PR Analysis phase.

This script will generate the following.

The artifacts folder
run-in-pmt.js
  1. Get the latest live updated product.
  2. Merge all support PRs
  3. Trigger the Jenkins build.
  4. Download each feature builds from the Jenkins after the build is successful.
  5. Clone or download the gen.js from this repo.
  6. Extract all the above zip files ( product, feature archives ) at the same location.

Example.

.
├── gen.js
├── org.wso2.carbon.apimgt.admin.feature-6.7.206
│   ├── features
│   └── plugins
├── org.wso2.carbon.apimgt.store.feature-6.7.206
│   ├── features
│   └── plugins
└── wso2am-3.2.0
    ├── INSTALL.txt
    ├── LICENSE.txt
    ├── README.txt
    ├── XMLInputFactory.properties
    ├── bin
    ├── business-processes
    ├── dbscripts
    ├── lib
    ├── modules
    ├── release-notes.html
    ├── repository
    ├── resources
    ├── samples
    ├── tmp
    ├── updates
    └── wso2update_linux
  • Note1: The folder structure is important.
  • Note2: The gen.js copied at the same location.

Open the gen.js and update the following section according to the patch number and product version.

// ******************************************************** //
// ******************************************************** //
// ******************************************************** //
//          This part need to modified accordingly          //
const jars = [
   // {
   //     jarName: 'org.wso2.carbon.apimgt.publisher.feature-6.7.206',
   //     appContext: 'publisher',
   // },
   {
       jarName: 'org.wso2.carbon.apimgt.store.feature-6.7.206',
       appContext: 'devportal',
   },
   {
       jarName: 'org.wso2.carbon.apimgt.admin.feature-6.7.206',
       appContext: 'admin',
   }
]
 
 
const productName = 'wso2am-3.2.0';
const artifactFolderName = '0551';
 
 
// ******************************************************** //
// ******************************************************** //
// ******************************************************** //

Note: You need to comment out the unwanted webapps.

Open a terminal and run the following command.

node gen.js

The following output will be shown.

/folderpath/0551/devportal/site/public/dist  created 
/folderpath/0551/admin/site/public/pages  created 
7 files to added to the devportal dist folder
7 files removed from the old pack's devportal dist folder
/folderpath/0551/admin/site/public/dist  created 
4 files to added to the admin dist folder
4 files removed from the old pack's admin dist folder
run-in-pmt.js file is saved

You need to commit the generated folder to the correct repo parth.

Next, you need to go to the “PR analysis screen” and run the run-in-pmt.js. To run the script you need to open the developer tools “Console” tab and paste the content and press “Return/Enter”

artifact-creator's People

Contributors

chanaka3d avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.