Giter Site home page Giter Site logo

xlr-github-plugin's Introduction

XL Release GitHub Plugin

Build Status Codacy Code Climate License: MIT Github All Releases

XL Release GitHub plugin is deprecated now as the plugin is insourced to Digital.ai organization. The plugin is available on https://github.com/xebialabs/xlr-github-plugin

Preface

This document describes the functionality provided by the XL Release GitHub plugin.

See the XL Release reference manual for background information on XL Release and release automation concepts.

Overview

The xlr-github-plugin is an XL Release plugin that allows you to integrate with GitHub.

Requirements

  • XL Release Server 7+

Installation

Building

You can use the gradle wrapper to build the plugin.

./gradlew clean assemble

Installing

To install this plugin you need to put the jar file into XL_RELEASE_SERVER_HOME/plugins and restart XL Release:

  • xlr-github-plugin-<version>.jar (you can find it in xlr-github-plugin/build/libs/ once you build it),

Restart the XL Release server after installing the JAR files.

Configuration

Users can choose a variety of authentication methods, and based on the method chosen, a subset of the configuration fields will need to be filled out. The most common approach would be using an authentication token in the "Login or token" field. This token is generated within the GitHub GUI, and the defined scopes for the token should match up with what you intend to orchestrate through XL Release. For the base url, the API version should be specified - something like https://github.example.com/api/v3 for GitHub Enterprise customers running on their own domain. Client ID and Client Secret are fields for an alternative authentication method - these can be left blank in the case of token authentication.

The User Agent, Per Page, and API Preview fields should be left at their default value for users getting started with the plugin. These settings enable additional control over API calls.

Usage

Create Repository task

image-create-repository

Create Branch task

image-create-branch

Create Tag task

image-create-tag

Update Content task

image-update-content

Create Pull Request task

image-create-pr

Merge Pull Request task

image-merge-pr

Pull Request Trigger

image-pull-request

Commit Trigger

image-commit-trigger

Wait For PR Merge

image-wait-pr-merge

References

Development

Releasing

This project uses the nebula-release-plugin, which in turn uses gradle-git plugin. So you can release a new version if this project using following commands:

  • to release a new patch (default): ./gradlew final -Prelease.scope=patch
  • to release a new minor release: ./gradlew final -Prelease.scope=minor
  • to release a new major release: ./gradlew final -Prelease.scope=major

By default gradle uses the last tag created, so in order to bypass that include -Prelease.useLastTag=false in your gradle task.

By default when you build the project it builds a snapshot version of next (to be released) minor release. You can get rid of -SNAPSHOT in the version by adding command-line parameter -Prelease.stage=final. Note that your Git project must be clean to be able to set version to final stage.

xlr-github-plugin's People

Contributors

bfoster9882 avatar byaminov avatar droberts2013 avatar hes-siemelink avatar jdewinne avatar ndebuhr avatar soni-ankur avatar sushant-pradhan avatar sushant-pradhan-tm avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xlr-github-plugin's Issues

Support for Non enterprise Github instance

@zvercodebender
I am trying to access my GitHub in the XLR template by using this xlr-github-plugin. Since it is not an enterprise version, It's not able to identify my base URL in a shared configuration.

Is this plugin meant to work for the enterprise version?
If not so what is the supported base URL format for non-enterprise Github?

AttributeError while using github plugin

Organisation : Allianz

Hi Team,

We are trying to use the xlr github plugin, for triggering build based on Pull Request Trigger option.
All the configuration and trigger has been set but while invoking the specific template, we are getting the below error:

javax.script.ScriptException: AttributeError: 'NoneType' object has no attribute 'rfind' in <script> at line number 17

We also tried setting up XLR locally and tried the same scenario but still same error throws out.

xl-release-27-4g67r.log

Attaching the full console log for reference.

Cannot build against 6.2.0

I don't know if the structure of XL Release has changed over the past two years, but this plugin is in dire need of an update. Issue after issue has arisen, and I'm finally blocked on this (why it's redefining xlReleaseHome, I can't say. But this file or directory does not exist.

A problem occurred configuring root project 'xlr-github-plugin'.
> /Applications/XL Release/xl-release-6.2.0-server does not exist or is not a folder

Thanks

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.