File tree 5 files changed +28
-4
lines changed
azure-pipelines-vscode-ext
testworkflows/azpipelines/legacy-parameter-passing-test-dotnet-arcade
5 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -706,11 +706,11 @@ public static async Task<MappingToken> ReadTemplate(Runner.Server.Azure.Devops.C
706
706
var paramname = ( kv . Key as StringToken ) ? . Value ;
707
707
if ( cparameters ? . TryGetValue ( paramname , out var value ) == true )
708
708
{
709
- parametersData [ paramname ] = value . ToContextData ( ) ;
709
+ parametersData [ paramname ] = ConvertAllScalarsToString ( value ) . ToContextData ( ) ;
710
710
}
711
711
else
712
712
{
713
- parametersData [ paramname ] = kv . Value . ToContextData ( ) ;
713
+ parametersData [ paramname ] = ConvertAllScalarsToString ( kv . Value ) . ToContextData ( ) ;
714
714
}
715
715
}
716
716
}
@@ -776,7 +776,7 @@ public static async Task<MappingToken> ReadTemplate(Runner.Server.Azure.Devops.C
776
776
templateContext . Errors . Check ( ) ;
777
777
if ( ! strictParametersCheck && cparameters != null ) {
778
778
foreach ( var param in cparameters ) {
779
- parametersData [ param . Key ] = param . Value . ToContextData ( ) ;
779
+ parametersData [ param . Key ] = ConvertAllScalarsToString ( param . Value ) . ToContextData ( ) ;
780
780
}
781
781
}
782
782
Original file line number Diff line number Diff line change
1
+ ### v0.0.16
2
+ - fix steps.* .continueOnError / allowed boolean values
3
+ - make condition stricter
4
+ - no longer accept ` $[ ] ` for conditions
5
+ - check step conditions
6
+ - fix invalid parameter passing to legacy templates using a parameter mapping or omit it
7
+ - all scalars should be strings like for job/stage templateContext
8
+
1
9
### v0.0.15
2
10
- fix variable templates using expressions in it's parameters
3
11
- fix empty dependsOn e.g. empty string is not a missing dependency
Original file line number Diff line number Diff line change 8
8
" Programming Languages"
9
9
],
10
10
"icon" : " pipeline-rocket.png" ,
11
- "version" : " 0.0.15 " ,
11
+ "version" : " 0.0.16 " ,
12
12
"publisher" : " christopherhx" ,
13
13
"repository" : " https://github.com/ChristopherHX/runner.server" ,
14
14
"engines" : {
Original file line number Diff line number Diff line change
1
+ parameters :
2
+ # 1es specific parameters
3
+ is1ESPipeline : ' '
4
+
5
+ jobs :
6
+ - job :
7
+ steps :
8
+ - ${{ if eq(parameters.is1ESPipeline, '') }} :
9
+ - ' Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder. ' : error
Original file line number Diff line number Diff line change
1
+ jobs :
2
+ - template : /job.yml
3
+ parameters :
4
+ is1ESPipeline : false
5
+
6
+ steps :
7
+ - bash : exit 0
You can’t perform that action at this time.
0 commit comments