-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextension.json
More file actions
65 lines (60 loc) · 1.5 KB
/
extension.json
File metadata and controls
65 lines (60 loc) · 1.5 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"id": "ibm.devops.services.pipeline.sonarqube",
"version": 1,
"name_key": "ExtName",
"desc_key": "ExtDesc",
"extension_type": "Test",
"message_key": "ExtMessage",
"inputs": [
{
"type": "Bluemix",
"inclusion" : "always"
}
],
"params": [
{
"name": "PROJ_KEY",
"type": "Text",
"required": "false",
"default_value": "",
"label_key": "PROJ_KEY_KEY",
"desc_key": "PROJ_KEY_DESC"
},
{
"name": "SRC_DIRS",
"type": "Text",
"required": "false",
"default_value": "",
"label_key": "SRC_DIRS_KEY",
"desc_key": "SRC_DIRS_DESC"
}
],
"outputs": [
{
"type": "Artifacts",
"inclusion" : "always"
}
],
"execution": {
"type": "JenkinsDocker",
"shell": "#!/bin/bash
set +x
set +e
export INIT_START_TIME=$(date +\"%s\")
export SRC=#SRC_DIRS#
export KEY=#PROJ_KEY#
. $EXT_DIR/_init.sh
INIT_END_TIME=$(date +\"%s\")
INIT_EST_TIME=$(($INIT_END_TIME-$INIT_START_TIME))
echo -e \"Init runtime of `date -u -d @\"$INIT_EST_TIME\" +\'%-Mm %-Ss\'`\"
. $EXT_DIR/execute.sh
RESULT=$?
if [ $RESULT -ne 0 ]; then
exit 1
fi
"
},
"project": "https://hub.jazz.net/project/alchemy/Alchemy-Ostanes",
"project_example": "https://github.com/Osthanes/sonarqube",
"project_contact": "elobeto@us.ibm.com"
}