PHPackages                             rfussien/gitlab2rundeck-adapter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rfussien/gitlab2rundeck-adapter

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

rfussien/gitlab2rundeck-adapter
===============================

a small gitlab to rundeck adapter

v1.1.3(8y ago)3312MITPHPPHP &gt;=5.4

Since Nov 13Pushed 2y ago2 watchersCompare

[ Source](https://github.com/rfussien/gitlab2rundeck-adapter)[ Packagist](https://packagist.org/packages/rfussien/gitlab2rundeck-adapter)[ Docs](https://github.com/rfussien/gitlab2rundeck-adapter)[ RSS](/packages/rfussien-gitlab2rundeck-adapter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

gitlab2rundeck-adapter
======================

[](#gitlab2rundeck-adapter)

[![Latest Stable Version](https://camo.githubusercontent.com/961dbb80f32dbfa2544be4e1521b8fbce6dc2743a902cf60dacd843ae1fb719d/68747470733a2f2f706f7365722e707567782e6f72672f726675737369656e2f6769746c61623272756e6465636b2d616461707465722f762f737461626c65)](https://packagist.org/packages/rfussien/gitlab2rundeck-adapter)[![License](https://camo.githubusercontent.com/eb082e3d67a9bb4bcffa2da855dc524dedf350758d63b3663b33fd2fcd931dc2/68747470733a2f2f706f7365722e707567782e6f72672f726675737369656e2f6769746c61623272756e6465636b2d616461707465722f6c6963656e7365)](https://packagist.org/packages/rfussien/gitlab2rundeck-adapter)[![Build Status](https://camo.githubusercontent.com/6dc65ea2c1069a1314c9ae9dfffb8ab4662e2df7b110a236c2ca4a94afa58fdb/68747470733a2f2f7472617669732d63692e6f72672f726675737369656e2f6769746c61623272756e6465636b2d616461707465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rfussien/gitlab2rundeck-adapter)[![Dependency Status](https://camo.githubusercontent.com/5096cffdab1f985282c72a63dbd4d706d2b72fa85fe2b42cb55496d79d882546/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536333737396131333664306162303031363030323135312f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/563779a136d0ab0016002151)[![Code Coverage](https://camo.githubusercontent.com/6e9b1ecbf29b78472ff70cfb2d744bcaa11da6f632a2008fefc77b7db5289003/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726675737369656e2f6769746c61623272756e6465636b2d616461707465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rfussien/gitlab2rundeck-adapter/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/64eee476683bf8df67e9cf14c4fdcacdc6272d941de9a6d06098bb9645f3f5de/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726675737369656e2f6769746c61623272756e6465636b2d616461707465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rfussien/gitlab2rundeck-adapter/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/8e32e218f6a347e8756b70bdd6f75a142cdf39118ae72664c47e6602f4cb8b4d/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30326364366463322d303761642d343431382d396265382d3637393532313165613231312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/02cd6dc2-07ad-4418-9be8-6795211ea211)

This package allows to run a rundeck job after a gitlab(ci) event is hooked.

Requirements:
-------------

[](#requirements)

- works with PHP 5.6 or above
- rundeck api 12 and above
- gitlab(ci) 8.5 and above

> note: it works with the webhook of gitlab AND gitlabCI. However, when using the webhook of gitlab, the build\_status is considered as failed. So in that case it would be useful to specify "runOnFail: true" in the project config.

Install
-------

[](#install)

Via Composer

```
$ composer require rfussien/gitlab2rundeck-adapter
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

Create two yaml configuration files. One for rundeck and another one for the gitlab's projects

#### Rundeck configuration

[](#rundeck-configuration)

```
# rundeck api configuration
# http{$ssl}://{$host}:{$port}/api/{api_version}/{jobID}/(run|executions)
host: rundeck.local                     # REQUIRED
token: CmBl3gDr8ua6uMXQS0pLSmGUDvHjdOl7 # REQUIRED
port: 4440                              # OPTIONAL (Default 4440)
ssl: true                               # OPTIONAL (Default false)
api_version: 13                         # OPTIONAL (Default 13. Has to be >= 12)
log_level: DEBUG                        # OPTIONAL ('DEBUG','VERBOSE','INFO','WARN','ERROR')
```

#### Gitlab projects configuration

[](#gitlab-projects-configuration)

```
# gitlab(ci) configuration
gitlab_url: http://gitlab
projects:
- project:
    name: repos/app1                             # REQUIRED project name (w/o the base_url)
    jobId: 558d3c76-7768-4056-a10c-0842ecae0ca9 # REQUIRED Rundeck Job UUID
    ref: master                                 # OPTIONAL default: master. Project branch
    runOnFail: true                             # OPTIONAL default: false. Run the job even if the tests failed
    runOnTagOnly: true                          # OPTIONAL default: false. Run the job only when a tag is done (useful for release deployment)
    jobArgs: { arg1: foo, arg2: bar }           # OPTIONAL Rundeck Job arguments
    runJobAs: foo                               # OPTIONAL Run the job as the given user
- project:
    name: repos/app2
    jobId: 558d3c76-7768-4056-a10c-0842ecae0ca8
    ref: master
    runOnFail: false
[...]
```

### Run the adapter

[](#run-the-adapter)

```
$adapter = G2R\Adapter::factory(
    __DIR__ . '/rundeck.yml',
    __DIR__ . '/projects.yml',
    // Eventually, give it a logger that implements psr3 (Psr\Log\LoggerInterface)
    (new Monolog\Logger('g2r'))->pushHandler(new Monolog\Handler\StreamHandler('./g2r.log'))
);

$adapter->run();
```

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email :author\_email instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 96.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~146 days

Total

5

Last Release

3252d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/488c93e63cb2701a038be750682c86b97ef3ddf63f6ad0397471e38dc77e7c4a?d=identicon)[rfussien](/maintainers/rfussien)

---

Top Contributors

[![rfussien](https://avatars.githubusercontent.com/u/3856033?v=4)](https://github.com/rfussien "rfussien (31 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rfussien-gitlab2rundeck-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/rfussien-gitlab2rundeck-adapter/health.svg)](https://phpackages.com/packages/rfussien-gitlab2rundeck-adapter)
```

###  Alternatives

[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
