Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Rust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Rust
Commits
b8a9ea26
Commit
b8a9ea26
authored
5 months ago
by
Benguria Elguezabal, Gorka
Browse files
Options
Downloads
Patches
Plain Diff
adds job tags
parent
c1505b72
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#164711
failed
5 months ago
Stage: .pre
Stage: build
Stage: publish
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+4
-0
4 additions, 0 deletions
README.md
kicker.json
+29
-1
29 additions, 1 deletion
kicker.json
templates/gitlab-ci-rust.yml
+21
-0
21 additions, 0 deletions
templates/gitlab-ci-rust.yml
with
54 additions
and
1 deletion
README.md
+
4
−
0
View file @
b8a9ea26
...
...
@@ -57,6 +57,7 @@ It uses the following variable:
| Input / Variable | Description | Default value |
| -------------------------------- | ------------------------------- | --------------------------- |
|
`build-args`
/
`RUST_BUILD_ARGS`
| Arguments used by the build job |
`build --with-default-args`
|
|
`node-build-job-tags`
/
`NODE_BUILD_JOB_TAGS`
| Tags to be used for selecting runners for the job | [] |
### SonarQube analysis
...
...
@@ -96,6 +97,7 @@ It uses the following variables:
|
`lint-image`
/
`RUST_LINT_IMAGE`
| The Docker image used to run the lint tool |
`rust-lint:latest`
|
|
`lint-disabled`
/
`RUST_LINT_DISABLED`
| Set to
`true`
to disable the
`lint`
analysis | _none_ (enabled) |
|
`lint-args`
/
`RUST_LINT_ARGS`
| Lint
[
options and arguments
](
link-to-the-cli-options
)
|
`--serevity=medium`
|
|
`node-lint-job-tags`
/
`NODE_LINT_JOB_TAGS`
| Tags to be used for selecting runners for the job | [] |
### `rust-depcheck` job
...
...
@@ -107,6 +109,7 @@ It uses the following variables:
| ---------------------------------------- | ----------------------------------------------------------------- | ---------------------- |
|
`depcheck-image`
/
`RUST_DEPCHECK_IMAGE`
| The Docker image used to run the dependency check tool |
`rust-depcheck:latest`
|
|
`depcheck-args`
/
`RUST_DEPCHECK_ARGS`
| Dependency check
[
options and arguments
](
link-to-the-cli-options
)
| _none_ |
|
`node-depcheck-job-tags`
/
`NODE_DEPCHECK_JOB_TAGS`
| Tags to be used for selecting runners for the job | [] |
### `rust-publish` job
...
...
@@ -120,6 +123,7 @@ It uses the following variables:
|
`publish-args`
/
`RUST_PUBLISH_ARGS`
| Arguments used by the publish job |
`publish --with-default-args`
|
| :lock:
`RUST_PUBLISH_LOGIN`
| Login to use to publish |
**must be defined**
|
| :lock:
`RUST_PUBLISH_PASSWORD`
| Password to use to publish |
**must be defined**
|
|
`node-publish-job-tags`
/
`NODE_PUBLISH_JOB_TAGS`
| Tags to be used for selecting runners for the job | [] |
### Secrets management
...
...
This diff is collapsed.
Click to expand it.
kicker.json
+
29
−
1
View file @
b8a9ea26
...
...
@@ -18,8 +18,15 @@
"description"
:
"Arguments used by the build job"
,
"default"
:
"build --with-default-args"
,
"advanced"
:
true
},
{
"name"
:
"RUST_RUST_BUILD_JOB_TAGS"
,
"description"
:
"Tags to be used for selecting runners for the job"
,
"type"
:
"array"
,
"default"
:
[],
"advanced"
:
true
}
],
],
"features"
:
[
{
"id"
:
"lint"
,
...
...
@@ -37,6 +44,13 @@
"description"
:
"Lint [options and arguments](link-to-the-cli-options)"
,
"default"
:
"--serevity=medium"
,
"advanced"
:
true
},
{
"name"
:
"RUST_RUST_LINT_JOB_TAGS"
,
"description"
:
"Tags to be used for selecting runners for the job"
,
"type"
:
"array"
,
"default"
:
[],
"advanced"
:
true
}
]
},
...
...
@@ -54,6 +68,13 @@
"name"
:
"RUST_DEPCHECK_ARGS"
,
"description"
:
"Dependency check [options and arguments](link-to-the-cli-options)"
,
"advanced"
:
true
},
{
"name"
:
"RUST_RUST_DEPCHECK_JOB_TAGS"
,
"description"
:
"Tags to be used for selecting runners for the job"
,
"type"
:
"array"
,
"default"
:
[],
"advanced"
:
true
}
]
},
...
...
@@ -78,6 +99,13 @@
"name"
:
"RUST_PUBLISH_PASSWORD"
,
"description"
:
"Password to use to publish"
,
"secret"
:
true
},
{
"name"
:
"RUST_RUST_PUBLISH_JOB_TAGS"
,
"description"
:
"Tags to be used for selecting runners for the job"
,
"type"
:
"array"
,
"default"
:
[],
"advanced"
:
true
}
]
}
...
...
This diff is collapsed.
Click to expand it.
templates/gitlab-ci-rust.yml
+
21
−
0
View file @
b8a9ea26
...
...
@@ -45,6 +45,23 @@ spec:
publish-args
:
description
:
Arguments used by the publish job
default
:
publish --with-default-args
rust-build-job-tags
:
description
:
tags to filter applicable runners for rust-build job
type
:
array
default
:
[]
rust-lint-job-tags
:
description
:
tags to filter applicable runners for rust-lint job
type
:
array
default
:
[]
rust-depcheck-job-tags
:
description
:
tags to filter applicable runners for rust-depcheck job
type
:
array
default
:
[]
rust-publish-job-tags
:
description
:
tags to filter applicable runners for rust-publish job
type
:
array
default
:
[]
---
# default workflow rules: Merge Request pipelines
workflow
:
...
...
@@ -418,6 +435,7 @@ rust-build:
paths
:
-
build/
-
reports/
tags
:
$[[ inputs.rust-build-job-tags ]]
# (example) linter job
rust-lint
:
...
...
@@ -441,6 +459,7 @@ rust-lint:
when
:
never
# .test-policy rules
-
!reference
[
.test-policy
,
rules
]
tags
:
$[[ inputs.rust-lint-job-tags ]]
# (example) dependency check job
rust-depcheck
:
...
...
@@ -459,6 +478,7 @@ rust-depcheck:
# all other cases: manual & non-blocking
-
when
:
manual
allow_failure
:
true
tags
:
$[[ inputs.rust-depcheck-job-tags ]]
# (example) publish job activated on env ($RUST_PUBLISH_ENABLED), with required $RUST_PUBLISH_LOGIN and $RUST_PUBLISH_PASSWORD env verification
rust-publish
:
...
...
@@ -480,3 +500,4 @@ rust-publish:
-
if
:
'
$CI_COMMIT_REF_NAME
=~
$INTEG_REF
||
$CI_COMMIT_REF_NAME
=~
$PROD_REF'
when
:
manual
allow_failure
:
true
tags
:
$[[ inputs.rust-publish-job-tags ]]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment