Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ACR] Populate Task Timer Trigger in Run Response #6221

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@
"x-ms-examples": {
"Runs_List": {
"$ref": "./examples/RunsList.json"
},
"Runs_List_WithTimerTrigger": {
"$ref": "./examples/RunsList_WithTimerTrigger.json"
}
}
}
Expand Down Expand Up @@ -222,7 +225,10 @@
"x-ms-examples": {
"Runs_Get": {
"$ref": "./examples/RunsGet.json"
}
},
"Runs_Get_WithTimerTrigger": {
"$ref": "./examples/RunsGet_WithTimerTrigger.json"
}
}
},
"patch": {
Expand Down Expand Up @@ -837,6 +843,10 @@
"description": "The value that indicates whether archiving is enabled or not.",
"default": false,
"type": "boolean"
},
"timerTrigger": {
"$ref": "#/definitions/TimerTriggerDescriptor",
"description": "The timer trigger that caused the run."
}
}
},
Expand Down Expand Up @@ -918,6 +928,19 @@
}
}
},
"TimerTriggerDescriptor": {
"type": "object",
"properties": {
"timerTriggerName": {
"description": "The timer trigger name that caused the run.",
"type": "string"
},
"scheduleOccurrence": {
"description": "The occurrence that triggered the run.",
"type": "string"
}
}
},
"PlatformProperties": {
"description": "The platform properties against which the run has to happen.",
"required": [
Expand Down Expand Up @@ -2536,4 +2559,4 @@
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"cpu": 2
},
"step": {
"type": "Docker",
"imageNames": [
"azurerest:testtag"
],
Expand All @@ -41,7 +40,7 @@
"timerTriggers": [
{
"name": "myTimerTrigger",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down Expand Up @@ -115,7 +114,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down Expand Up @@ -194,7 +193,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"cpu": 2
},
"step": {
"type": "Docker",
"imageNames": [
"azurerest:testtag"
],
Expand All @@ -41,7 +40,7 @@
"timerTriggers": [
{
"name": "myTimerTrigger",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down Expand Up @@ -112,7 +111,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down Expand Up @@ -185,7 +184,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"cpu": 2
},
"step": {
"type": "Docker",
"imageNames": [
"azurerest:testtag"
],
Expand All @@ -41,7 +40,7 @@
"timerTriggers": [
{
"name": "myTimerTrigger",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down Expand Up @@ -116,7 +115,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down Expand Up @@ -197,7 +196,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"cpu": 3
},
"step": {
"type": "Docker",
"imageNames": [
"azurerest:testtag1"
],
Expand Down Expand Up @@ -91,7 +90,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down Expand Up @@ -170,7 +169,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"cpu": 3
},
"step": {
"type": "Docker",
"imageNames": [
"azurerest:testtag1"
],
Expand Down Expand Up @@ -83,7 +82,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down Expand Up @@ -162,7 +161,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"api-version": "2019-04-01",
"runId": "0accec26-d6de-4757-8e74-d080f38eaaab"
},
"responses": {
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded",
"runId": "0accec26-d6de-4757-8e74-d080f38eaaab",
"status": "Succeeded",
"lastUpdatedTime": "2018-01-25T05:13:51.617Z",
"runType": "AutoBuild",
"createTime": "2018-01-25T05:13:51.618Z",
"startTime": "2018-01-25T05:50:51.618Z",
"finishTime": "2018-01-25T06:13:51.618Z",
"outputImages": [
{
"registry": "myregistry.azurecr.io",
"repository": "myimage",
"tag": "latest",
"digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"
}
],
"task": "myTask",
"timerTrigger": {
"timerTriggerName": "myTimerTrigger",
"scheduleOccurrence": "6/4/2019 9:30 AM"
},
"isArchiveEnabled": true,
"platform": {
"os": "Linux",
"architecture": "amd64"
},
"agentConfiguration": {
"cpu": 2
}
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab",
"name": "0accec26-d6de-4757-8e74-d080f38eaaab",
"type": "Microsoft.ContainerRegistry/registries/runs"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"api-version": "2019-04-01",
"$filter": "",
"$top": 10
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"provisioningState": "Succeeded",
"runId": "0accec26-d6de-4757-8e74-d080f38eaaab",
"status": "Succeeded",
"lastUpdatedTime": "2018-01-25T05:13:51.617Z",
"runType": "AutoBuild",
"createTime": "2018-01-25T05:13:51.618Z",
"startTime": "2018-01-25T05:50:51.618Z",
"finishTime": "2018-01-25T06:13:51.618Z",
"outputImages": [
{
"registry": "myregistry.azurecr.io",
"repository": "myimage",
"tag": "latest",
"digest": "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"
}
],
"task": "myTask",
"timerTrigger": {
"timerTriggerName": "myTimerTrigger",
"scheduleOccurrence": "6/4/2019 9:30 AM"
},
"isArchiveEnabled": true,
"platform": {
"os": "Linux",
"architecture": "amd64"
},
"agentConfiguration": {
"cpu": 2
}
},
"id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab",
"name": "0accec26-d6de-4757-8e74-d080f38eaaab",
"type": "Microsoft.ContainerRegistry/registries/runs"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"cpu": 2
},
"step": {
"type": "Docker",
"imageNames": [
"azurerest:testtag"
],
Expand All @@ -41,7 +40,7 @@
"timerTriggers": [
{
"name": "myTimerTrigger",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down Expand Up @@ -112,7 +111,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down Expand Up @@ -185,7 +184,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{
"name": "myTimerTrigger",
"status": "Enabled",
"schedule": "0 30 9 * * 1-5"
"schedule": "30 9 * * 1-5"
}
],
"sourceTriggers": [
Expand Down
Loading