@@ -124,32 +124,6 @@ pipeline:
124
124
spec :
125
125
branch : <+pipeline.variables.source_branch>
126
126
description : Explicitly clone repo to pull a commit created during reconciliation
127
- - step :
128
- type : Run
129
- name : report_status_to_github_start
130
- identifier : report_status_to_github_start
131
- spec :
132
- shell : Bash
133
- command : |-
134
- cd /harness/<+pipeline.variables.target_repo>
135
- git log -2
136
- latest_commit_sha=$(git log -1 --pretty=format:"%H")
137
- echo ${latest_commit_sha}
138
- pipeline_execution_github_status_key="Test framework - <+matrix.env.env_folder> - <+matrix.env.repo>:<+matrix.env.tag>"
139
-
140
- echo "Update PR status"
141
- curl -i -X POST \
142
- -H "Authorization: Bearer <+secrets.getValue("account.Github_Access_Token")>" \
143
- -H "Accept: application/vnd.github.v3+json" \
144
- https://api.github.com/repos/<+account.name>/datarobot-user-models/statuses/${latest_commit_sha} \
145
- -d "{\"state\":\"pending\",\"target_url\":\"<+pipeline.execution.url>\",\"description\":\"Test is running\",\"context\":\"$pipeline_execution_github_status_key\"}"
146
- outputVariables :
147
- - name : pipeline_execution_github_status_key
148
- type : String
149
- value : pipeline_execution_github_status_key
150
- - name : latest_commit_sha
151
- type : String
152
- value : latest_commit_sha
153
127
- step :
154
128
type : Run
155
129
name : Run functional test in provided framework
@@ -168,41 +142,6 @@ pipeline:
168
142
when :
169
143
stageStatus : Success
170
144
contextType : Pipeline
171
- - step :
172
- type : Run
173
- name : report_status_to_github_end
174
- identifier : report_status_to_github_end
175
- spec :
176
- shell : Bash
177
- command : |-
178
- latest_commit_sha="<+execution.steps.report_status_to_github_start.output.outputVariables.latest_commit_sha>"
179
- github_status_key="<+execution.steps.report_status_to_github_start.output.outputVariables.pipeline_execution_github_status_key>"
180
-
181
- echo ${latest_commit_sha}
182
- echo ${github_status_key}
183
-
184
- status_0="<+execution.steps.Run_1.status>"
185
-
186
- echo "Update PR status"
187
-
188
- if [[ "$status_0" == "SUCCEEDED" ]]; then
189
- state="success"
190
- description="Passed"
191
- elif [[ "$status_0" == "PENDING" ]]; then
192
- state="pending"
193
- description="Pending"
194
- else
195
- state="failure"
196
- description="Failed"
197
- fi
198
-
199
- curl -i -u <+account.name>:<+secrets.getValue("account.Github_Access_Token")> \
200
- -X POST \
201
- -H "Accept: application/vnd.github.v3+json" \
202
- https://api.github.com/repos/<+account.name>/datarobot-user-models/statuses/${latest_commit_sha} \
203
- -d "{\"state\":\"$state\",\"target_url\":\"<+pipeline.execution.url>\",\"description\":\"$description\",\"context\":\"$github_status_key\"}"
204
- when :
205
- stageStatus : All
206
145
caching :
207
146
enabled : true
208
147
paths : []
0 commit comments