5.0.1 • Published 3 months ago

screwdriver-scm-gitlab v5.0.1

Weekly downloads
45
License
BSD-3-Clause
Repository
github
Last release
3 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.

5.0.1

3 months ago

5.0.0

4 months ago

4.1.0

7 months ago

4.0.1

8 months ago

4.0.0

9 months ago

3.2.2

1 year ago

3.2.1

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.10.0

3 years ago

2.9.2

3 years ago

2.9.3

3 years ago

2.9.0

3 years ago

2.8.0

3 years ago

2.9.1

3 years ago

2.7.2

4 years ago

2.7.1

4 years ago

2.7.0

4 years ago

2.6.0

4 years ago

2.5.0

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

8 years ago