Skip to content

Commit

Permalink
feat: 流水线导出YAML时,支持导出运行条件 TencentBlueKing#5344
Browse files Browse the repository at this point in the history
  • Loading branch information
yongyiduan authored and JamiKX1 committed Oct 20, 2021
1 parent 1ea56ef commit 40d88f9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ object PipelineVarUtil {

private val newVarMappingOldVar = oldVarMappingNewVar.map { kv -> kv.value to kv.key }.toMap()

private val reverseContextVarMappingBuildVar =
contextVarMappingBuildVar.values.zip(contextVarMappingBuildVar.keys).toMap()

fun fetchReverseVarName(contextKey: String): String? {
return reverseContextVarMappingBuildVar[contextKey]
}

/**
* 填充CI预置变量
*/
Expand Down

0 comments on commit 40d88f9

Please sign in to comment.