3.2.2 • Published 2 months ago

screwdriver-scm-gitlab v3.2.2

Weekly downloads
45
License
BSD-3-Clause
Repository
github
Last release
2 months ago

scm-gitlab

Version Downloads Build Status Open Issues License

This scm plugin extends the scm-base, and provides methods to fetch and update data in Gitlab.

Usage

npm install screwdriver-scm-gitlab

Initialization

The class has a variety of knobs to tweak when interacting with GitLab.

ParameterTypeDescription
configObjectConfiguration Object
config.gitlabHost (gitlab.com)StringGitLab hostname/port
config.gitlabProtocol (https)StringThe protocol to use: http or https
config.username (sd-buildbot)StringGitLab username for checkout
config.email (dev-null@screwdriver.cd)StringGitLab user email for checkout
config.https (false)BooleanIs the Screwdriver API running over HTTPS
config.oauthClientIdStringOAuth Client ID provided by GitLab application
config.oauthClientSecretStringOAuth Client Secret provided by GitLab application
config.readOnly ({})ObjectConfig with readOnly info: enabled, username, accessToken, cloneType
config.fusebox ({})ObjectCircuit Breaker configuration
const scm = new GitlabScm({
    oauthClientId: 'abcdef',
    oauthClientSecret: 'hijklm',
    gitlabHost: 'gitlab.com'
});

Methods

getScmContexts

No parameters are required.

Expected Outcome

A single element array of ScmContext (ex: ['gitlab:gitlab.com'](default), ['gitlab:mygitlab.com']), which will be a unique identifier for the scm.

For more information on the exposed methods please see the scm-base class.

Testing

npm test

License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.

3.2.2

2 months ago

3.2.1

11 months ago

3.2.0

11 months ago

3.1.0

12 months ago

3.0.0

1 year ago

2.10.0

2 years ago

2.9.2

2 years ago

2.9.3

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

2.9.1

2 years ago

2.7.2

2 years ago

2.7.1

2 years ago

2.7.0

3 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.0

7 years ago