Skip to content

Commit 0696461

Browse files
Bump azp agent to 4.266.2 (#647)
* Bump azp agent * AZP_AGENT_IGNORE_VSTSTASKLIB=true due to bug * Update test containers due to glibc bump
1 parent 6d0c068 commit 0696461

6 files changed

Lines changed: 21 additions & 17 deletions

File tree

src/Runner.Client/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ static int Main(string[] args)
14281428
if(parameters.Parallel > 0) {
14291429
var azure = string.Equals(parameters.Event, "azpipelines", StringComparison.OrdinalIgnoreCase);
14301430
if(string.IsNullOrEmpty(parameters.RunnerVersion) && string.IsNullOrEmpty(parameters.RunnerPath) && azure) {
1431-
parameters.RunnerVersion = "4.248.1";
1431+
parameters.RunnerVersion = "4.266.2";
14321432
}
14331433
if(!string.IsNullOrEmpty(parameters.RunnerVersion)) {
14341434
parameters.RunnerPath = Directory.GetParent(await ExternalToolHelper.GetAgent(parameters, azure ? "azagent" : "runner", parameters.RunnerVersion, source.Token)).Parent.FullName;

src/Runner.Server/Controllers/MessageController.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3159,6 +3159,10 @@ private HookResponse AzureDevopsMain(string fileRelativePath, string content, st
31593159
foreach(var v in variables) {
31603160
v.Value.IsReadonly = true;
31613161
}
3162+
3163+
// Allow override here, bug https://github.com/microsoft/azure-pipelines-agent/issues/5403
3164+
variables["AZP_AGENT_IGNORE_VSTSTASKLIB"] = "true";
3165+
31623166
// Provide all env vars as normal variables
31633167
if(env?.Length > 0) {
31643168
LoadEnvSec(env, (k, v) => variables[k] = v);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# src:https://learn.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops#single-job
2-
container: ubuntu:18.04
2+
container: ubuntu:24.04
33

44
steps:
55
- script: printenv

testworkflows/azpipelines/container-docs/step-container-resources.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
resources:
33
containers:
44
- container: python
5-
image: python:3.8
5+
image: python:latest
66
- container: node
7-
image: node:13.2
7+
image: node:latest
88

99
jobs:
1010
- job: example

testworkflows/azpipelines/containermatrix/pipeline.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# Based on https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/jobs-job-container?view=azure-pipelines#examples-1
22
resources:
33
containers:
4-
- container: u14
5-
image: ubuntu:14.04
4+
- container: u20
5+
image: ubuntu:20.04
66

7-
- container: u16
8-
image: ubuntu:16.04
7+
- container: u22
8+
image: ubuntu:22.04
99

10-
- container: u18
11-
image: ubuntu:18.04
10+
- container: u24
11+
image: ubuntu:24.04
1212

1313
jobs:
1414
- job: RunInContainer
1515

1616
strategy:
1717
matrix:
18-
ubuntu14:
19-
containerResource: u14
20-
ubuntu16:
21-
containerResource: u16
22-
ubuntu18:
23-
containerResource: u18
18+
ubuntu20:
19+
containerResource: u20
20+
ubuntu22:
21+
containerResource: u22
22+
ubuntu24:
23+
containerResource: u24
2424

2525
container: $[ variables['containerResource'] ]
2626

testworkflows/azpipelines/typedtemplates-other-types/tmpl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ parameters:
5858
- container: ub0
5959
image: ubuntu:latest
6060
- container: ub1
61-
image: ubuntu:18.04
61+
image: ubuntu:22.04
6262
stages:
6363
- ${{ parameters.stages }}
6464
- ${{ if ne(converttojson(parameters.legObj.b), '"true"') }}:

0 commit comments

Comments
 (0)