Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
3a25d5bd
Unverified
Commit
3a25d5bd
authored
2 years ago
by
Keshav Prasad
Browse files
Options
Download
Patches
Plain Diff
feat: SB-30654 generalizing plugins upload
Signed-off-by:
Keshav Prasad
<
keshavprasadms@gmail.com
>
parent
568f7ea6
upstream/release-5.1.0-vdn
login-changes
loginRegisterBtn
prasath-release-5.1.0
release-5.1.0
release-5.1.0-api
release-5.1.0-apiuat
release-5.1.0-bulk-enrol-unenrol
release-5.1.0-uat
release-5.1.0-uatLatest
release-5.1.0-uatapi
release-5.1.0-upsmf-prod
release-uat-nginx
revert-5-login-changes
release-5.1.0_RC3
release-5.1.0_RC2
release-5.1.0_RC1
1 merge request
!16
Release 5.1.0 api
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/deploy-plugins.yml
+16
-7
ansible/deploy-plugins.yml
pipelines/deploy/CEPlugins/Jenkinsfile
+1
-2
pipelines/deploy/CEPlugins/Jenkinsfile
with
17 additions
and
9 deletions
+17
-9
ansible/deploy-plugins.yml
+
16
−
7
View file @
3a25d5bd
...
...
@@ -72,13 +72,22 @@
-
preview
-
block
:
-
name
:
run the az_copy.sh script
shell
:
"
bash
{{
az_file_path
}}
{{
plugin_storage
}}
{{
source_file
}}"
async
:
3600
poll
:
10
environment
:
AZURE_STORAGE_ACCOUNT
:
"
{{
azure_public_storage_account_name
}}"
AZURE_STORAGE_SAS_TOKEN
:
"
{{
azure_public_storage_account_sas
}}"
-
name
:
delete batch of files from azure storage
include_role
:
name
:
azure-cloud-storage
tasks_from
:
blob-delete-batch.yml
vars
:
blob_delete_pattern
:
"
content-plugins/{{
item
}}"
with_lines
:
"
cat
{{
plugin_list_to_delete_and_upload
}}"
-
name
:
upload batch of files to azure storage
include_role
:
name
:
azure-cloud-storage
tasks_from
:
blob-upload-batch.yml
vars
:
blob_container_folder_path
:
"
/content-plugins"
local_file_or_folder_path
:
"
{{
source_file
}}/{{
item
}}"
with_lines
:
"
cat
{{
plugin_list_to_delete_and_upload
}}"
tags
:
-
plugins
when
:
cloud_service_provider == "azure"
...
...
This diff is collapsed.
Click to expand it.
pipelines/deploy/CEPlugins/Jenkinsfile
+
1
−
2
View file @
3a25d5bd
...
...
@@ -31,11 +31,10 @@ node() {
sh
"""
unzip ${artifact}
unzip content-plugins.zip
chmod a+x content-plugins/az_copy.sh
mv content-plugins ansible
"""
ansiblePlaybook
=
"${currentWs}/ansible/deploy-plugins.yml"
ansibleExtraArgs
=
"--tags plugins --extra-vars \" source_file=${currentWs}/ansible/content-plugins
az_file_path
=${currentWs}/ansible/content-plugins/
az_copy.sh
\" --vault-password-file /var/lib/jenkins/secrets/vault-pass"
ansibleExtraArgs
=
"--tags plugins --extra-vars \" source_file=${currentWs}/ansible/content-plugins
plugin_list_to_delete_and_upload
=${currentWs}/ansible/content-plugins/
plugin_list_to_delete_and_upload.txt
\" --vault-password-file /var/lib/jenkins/secrets/vault-pass"
values
.
put
(
'ansiblePlaybook'
,
ansiblePlaybook
)
values
.
put
(
'ansibleExtraArgs'
,
ansibleExtraArgs
)
println
values
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets