As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 30185044 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

return non-zero status if gitlab-projects or gitlab-keys cmd was not successful

parent f0eb8017
No related branches found
No related tags found
No related merge requests found
v1.2.0
- Return non-zero result if gitlab-projects and gitlab-keys execution was not successful
v1.1.0
- added mv-project feature
- increased test coverage
Loading
Loading
1.1.0
1.2.0
Loading
Loading
@@ -12,6 +12,10 @@ require_relative '../lib/gitlab_init'
#
require File.join(ROOT_PATH, 'lib', 'gitlab_keys')
GitlabKeys.new.exec
exit
# Return non-zero if command execution was not successful
if GitlabKeys.new.exec
exit 0
else
exit 1
end
Loading
Loading
@@ -16,6 +16,10 @@ require_relative '../lib/gitlab_init'
# /bin/gitlab-projects import-project randx/six.git https://github.com/randx/six.git
#
require File.join(ROOT_PATH, 'lib', 'gitlab_projects')
GitlabProjects.new.exec
exit
# Return non-zero if command execution was not successful
if GitlabProjects.new.exec
exit 0
else
exit 1
end
Loading
Loading
@@ -18,6 +18,7 @@ class GitlabKeys
when 'rm-key'; rm_key
else
puts 'not allowed'
false
end
end
Loading
Loading
Loading
Loading
@@ -31,6 +31,7 @@ class GitlabProjects
when 'import-project'; import_project
else
puts 'not allowed'
false
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment