This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": string, | |
| "projectId": string, | |
| "status": enum(Status), | |
| "statusDetail": string, | |
| "steps": [ | |
| { | |
| // some steps that invoke bazel | |
| } | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import net.sf.json.JSONException | |
| node { | |
| // Just example of how to use the function | |
| currentBuild.description = find_trigger_user(currentBuild) | |
| } | |
| def find_trigger_user(build){ | |
| cause = build.buildCauses.getJSONObject(0) | |
| try{ | |
| return cause.getString("userId") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| current_branch <- get_current_branch() | |
| if (force_latest): # for specific CI cases | |
| recreate_file(current_branch) | |
| else: | |
| git_aware_file_for_branch <- find_locked_file_for_branch(current_branch) | |
| git_ignored_file <- find_git_ignored_file_for_branch(current_branch) | |
| if (git_aware_file_for_branch): | |
| symlink(current_2nd_party_file, git_aware_file) | |
| else if (git_ignored_file): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") | |
| def wix_deps(): | |
| git_repository( | |
| name = "wix_a", | |
| remote = "git://github.com:wix-example/wix-a.git", | |
| commit = "[latest_wix_a_commit]", | |
| ) |
OlderNewer