File tree Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ skip_list:
3
3
- "name[template]"
4
4
- "args[module]"
5
5
- "yaml[line-length]"
6
+ - "yaml[truthy]"
6
7
- "galaxy[no-changelog]"
7
8
- "meta-unsupported-ansible"
8
9
- "meta-runtime[unsupported-version]"
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ matrix:
31
31
env : ANSIBLE_VERSION="stable-2.11"
32
32
services :
33
33
- docker
34
- before_script : source .travis/get_artifactory_creds .sh
34
+ before_script : source .travis/get_vault_data .sh
35
35
script : |
36
36
echo ""
37
37
echo "#############################################"
@@ -54,3 +54,12 @@ script: |
54
54
-e TRAVIS_PYTHON_VERSION=$TRAVIS_PYTHON_VERSION \
55
55
$DOCKER_REGISTRY/$IMAGE_NAME:latest \
56
56
bash -c "cd /root/ansible_collections/ibm/ibm_zos_cics && bash .travis/build_and_test.sh"
57
+
58
+ jobs :
59
+ include :
60
+ - stage : deploy
61
+ script : bash .travis/push_artifactory.sh
62
+ python : " 3.10"
63
+ env : ANSIBLE_VERSION="stable-2.14"
64
+ on :
65
+ branch : main
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ pip install https://github.com/ansible/ansible/archive/stable-2.14.tar.gz
6
+
7
+ ansible-galaxy collection build " $TRAVIS_BUILD_DIR " --force
8
+
9
+ file_with_prefix=" $( find . -type f -iname " ibm-ibm_zos_cics-*" ) "
10
+ file=" ${file_with_prefix// .\/ / } "
11
+ no_extension=" ${file// .tar.gz/ } "
12
+ no_starting=" ${no_extension// .\/ / } "
13
+ version_number=" ${no_starting// ibm-ibm_zos_cics-/ } "
14
+ TRAVIS_NO_DOT=" ${TRAVIS_JOB_NUMBER// ./ D} "
15
+
16
+ echo " "
17
+ echo " ##########################################################"
18
+ echo " ############# Uploading build to Artifactory #############"
19
+ echo " ##########################################################"
20
+ echo " #"
21
+ echo " # File: $file "
22
+ echo " # Version: $version_number "
23
+ echo " #"
24
+ echo " ##########################################################"
25
+
26
+ curl -ksSf \
27
+ -H " Authorization: Bearer $ARTIFACTORY_TOKEN " -X PUT \
28
+ -T " $TRAVIS_BUILD_DIR " /" $file " \
29
+ " $ARTIFACTORY_URL " /" $version_number " /" $TRAVIS_NO_DOT " /" $file "
You can’t perform that action at this time.
0 commit comments