Skip to content

A JHipster module to display latest commit build from GitLab CI into an application

License

Notifications You must be signed in to change notification settings

ngaxavi/generator-jhipster-gitlab-ci-build-status

Repository files navigation

generator-jhipster-gitlab-ci-build-status

NPM version Build Status Dependency Status

JHipster module, display the GitLab build status of your JHipster application into it

Introduction

This is a JHipster module, that is meant to be used in a JHipster application. This module will add a view to the last build status of your application footer, when it deploys on GitLab. After having push the code you just need to reload the page on your application to see the actual build status.

Prerequisites

As this is a JHipster module, we expect you to have JHipster and its related tools already installed:

Moreover you need your private token from GitLab. you can find it

Profile Settings -> Account -> Private Token

and you need the ID of your project from GitLab

Setting of your Project -> Triggers

and you will find something like this

curl -X POST \
     -F token=TOKEN \
     -F ref=REF_NAME \
     https://gitlab.com/api/v3/projects/123456/trigger/builds (project ID: 123456)
     

Installation

To install this module:

npm install -g generator-jhipster-gitlab-ci-build-status

To update this module:

npm update -g generator-jhipster-gitlab-ci-build-status

Usage

To run the module on a JHipster generated application:

yo jhipster-gitlab-ci-build-status

License

Apache-2.0 © [Xavier Ngansop]

About

A JHipster module to display latest commit build from GitLab CI into an application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published