-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: better support for custom gitlab ports #1368
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b94cf0a
fix: better support for custom gitlab ports
ANGkeith 26df1f3
fix: support for non-standard host schema and ports (#1369)
rgalonso 4315984
test: fix regression test
rgalonso c3976c9
style: fix indentation
rgalonso 20930f8
docs: update wordings
ANGkeith d74adbf
refactor: refactor
ANGkeith 49e71a9
test: refactor and add test cases for predefined-variables
ANGkeith 814a6c3
fix: variables set via --variable cli option should have the highest …
ANGkeith e16509c
refactor: dry and change image to busybox (smaller size)
ANGkeith fec4a80
Update README.md
ANGkeith fb9b90c
Update src/parser-includes.ts
ANGkeith File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ test.concurrent("include-component no component template file (protocol: https)" | |
expect(true).toBe(false); | ||
} catch (e: any) { | ||
assert(e instanceof AssertionError, `Unexpected error thrown:\n ${e}`); | ||
expect(e.message).toBe("This GitLab CI configuration is invalid: component: `gitlab.com/components/go/[email protected]`. One of the file [templates/potato.yml,templates/potato/template.yml,] must exists in `gitlab.com/components/go`"); | ||
expect(e.message).toBe("This GitLab CI configuration is invalid: component: `gitlab.com/components/go/[email protected]`. One of the files [templates/potato.yml,templates/potato/template.yml,] must exist in `gitlab.com/components/go`"); | ||
} | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
--- | ||
test-job: | ||
image: busybox | ||
script: | ||
- echo ${CI_PROJECT_NAME} | ||
- echo ${CI_PROJECT_PATH} | ||
- echo ${CI_PROJECT_PATH_SLUG} | ||
- echo ${CI_PROJECT_NAMESPACE} | ||
- echo ${CI_PROJECT_DIR} | ||
- echo ${CI_DEFAULT_BRANCH} | ||
- echo ${CI_REGISTRY_IMAGE} | ||
- echo ${CI_NODE_INDEX}/${CI_NODE_TOTAL} | ||
- env | sort | grep -Ev "^PATH|^HOSTNAME|^HOME=|^More commit text$|^SHLVL" | ||
|
||
test-job-commit-short-length: | ||
shell-isolation: | ||
script: | ||
- echo ${CI_COMMIT_SHORT_SHA} | ||
- "[ ${#CI_COMMIT_SHORT_SHA} -eq 8 ] || exit 1" | ||
- echo ${CI_PROJECT_DIR} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This var is redundant since it'll be ovewritten at a later stage
gitlab-ci-local/src/job.ts
Line 462 in 47987f4