-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·44 lines (31 loc) · 1.25 KB
/
run.sh
File metadata and controls
executable file
·44 lines (31 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
#
# Environment variables
#
# The id of the toolchain that shows up on the brower URL
export TOOLCHAIN_ID="1cfc3bd9-3891-4a9d-8503-e1cb10333e38"
# API Key of the user
export IBM_CLOUD_API_KEY="5nolj6lyv65L6dEZbuAzK5sGLgWmw9VXCFO7xqwoUCwI"
# This is the name of the application that shows up on the Dashboard
export LOGICAL_APP_NAME="Weather Application"
# This value is prefixed to the build number
export BUILD_PREFIX=master
# A unique number identifying the build
export BUILD_NUMBER=1
# Set the value to true to see detail CLI logs
#export IDRA_DEBUG=false
#
# Upload a build record for this build, It is assumed that the build was successful
idra --publishbuildrecord --branch=master --repositoryurl=https://test-iam-1 --commitid=12344234 --status=pass
#
# Upload unittest test record for the build
idra --publishtestresult --filelocation=mocha_pass.json --type=unittest
#
# Upload CodeCoverge test record for the build
idra --publishtestresult --filelocation=istanbul_pass.json --type=code
#
# Invoke a DevOps Insights gate to evaluated a policy based on uploaded data
idra --evaluategate --policy=FirstPolicy
#
# Upload a deployment record, It is assumed that the deployment was successful
idra --publishdeployrecord --env=dev --status=pass