Remove unused bootstrap.json and references.
Change-Id: I9ccbb11f86cb3873c0f95529e439d00aba1f77e1
diff --git a/jenkins/jobs/BUILD b/jenkins/jobs/BUILD
index 2e206ae..f8410b7 100644
--- a/jenkins/jobs/BUILD
+++ b/jenkins/jobs/BUILD
@@ -12,9 +12,6 @@
[jenkins_job(
name = "bazel/" + job,
config = "global/%s.xml.tpl" % job,
- deps = [
- ":configs/bootstrap.json",
- ],
) for job in [
"nightly",
"presubmit",
diff --git a/jenkins/jobs/configs/bootstrap.json b/jenkins/jobs/configs/bootstrap.json
deleted file mode 100644
index 80b8fa1..0000000
--- a/jenkins/jobs/configs/bootstrap.json
+++ /dev/null
@@ -1,64 +0,0 @@
-// DO NOT MODIFY!
-// This file is used only for older tree of Bazel, new tree includes it.
-// Please modify https://github.com/bazelbuild/bazel/blob/master/scripts/ci/bootstrap.json
-[
- {
- "node": "linux-x86_64",
- "parameters": {
- "archive": {
- "bazel-bin/src/bazel": "bazel",
- "bazel-bin/scripts/packages/with-jdk/install.sh": "bazel-%{release_name}-installer-linux-x86_64.sh",
- "bazel-bin/scripts/packages/without-jdk/install.sh": "bazel-%{release_name}-without-jdk-installer-linux-x86_64.sh",
- "bazel-bin/scripts/packages/debian/bazel-debian.deb": "bazel_%{release_name}-linux-x86_64.deb",
- "bazel-genfiles/bazel-distfile.zip": "bazel-%{release_name}-dist.zip"
- },
- "stash": {
- "bazel-genfiles/scripts/packages/debian/bazel.dsc": "bazel.dsc",
- "bazel-genfiles/scripts/packages/debian/bazel.tar.gz": "bazel.tar.gz",
- "bazel-genfiles/site/jekyll-tree.tar": "docs.bazel.build.tar",
- },
- "targets": [
- "//scripts/packages",
- "//site:jekyll-tree",
- ]
- }
- },
- { "node": "ubuntu_16.04-x86_64" },
- {
- "node": "darwin-x86_64",
- "parameters": {
- "archive": {
- "bazel-bin/src/bazel": "bazel",
- "bazel-bin/scripts/packages/with-jdk/install.sh": "bazel-%{release_name}-installer-darwin-x86_64.sh",
- "bazel-bin/scripts/packages/without-jdk/install.sh": "bazel-%{release_name}-without-jdk-installer-darwin-x86_64.sh"
- },
- "targets": [
- "//scripts/packages"
- ],
- // TODO(dmarting): Do we still needs that? this could be done as an external repo
- // instead.
- "opts": ["--define IPHONE_SDK=1"]
- }
- },
- {
- "node": "windows-x86_64",
- "parameters": {
- "archive": {
- "bazel-bin/src/bazel": ["bazel.exe", "bazel-%{release_name}-without-jdk-windows-x86_64.exe"],
- "bazel-bin/src/bazel_with_jdk": "bazel-%{release_name}-windows-x86_64.exe",
- "bazel-genfiles/scripts/packages/bazel.zip": "bazel-%{release_name}-without-jdk-windows-x86_64.zip",
- "bazel-genfiles/scripts/packages/bazel_with_jdk.zip": "bazel-%{release_name}-windows-x86_64.zip"
- },
- "targets": [
- "//scripts/packages"
- ],
- "opts": [
- "--copt=-w",
- "--host_copt=-w",
- // TODO(pcloudy):
- // Remove it after wrapper-less CROSSTOOL becomes default
- "--action_env=NO_MSVC_WRAPPER=1"
- ]
- }
- }
-]
diff --git a/jenkins/jobs/global/nightly.xml.tpl b/jenkins/jobs/global/nightly.xml.tpl
index 255fd6a..0ae1215 100644
--- a/jenkins/jobs/global/nightly.xml.tpl
+++ b/jenkins/jobs/global/nightly.xml.tpl
@@ -42,8 +42,7 @@
repository: "https://bazel.googlesource.com/bazel",
branch: "master",
extra_bazelrc: params.EXTRA_BAZELRC,
- refspec: "+refs/heads/*:refs/remotes/origin/*",
- configuration: '''{{ raw_imports['//jenkins/jobs:configs/bootstrap.json'].replace('\\', '\\\\').replace("'", "\\'") }}''')
+ refspec: "+refs/heads/*:refs/remotes/origin/*")
</script>
<sandbox>true</sandbox>
</definition>
diff --git a/jenkins/jobs/global/presubmit.xml.tpl b/jenkins/jobs/global/presubmit.xml.tpl
index 6e26601..b81d4eb 100644
--- a/jenkins/jobs/global/presubmit.xml.tpl
+++ b/jenkins/jobs/global/presubmit.xml.tpl
@@ -61,8 +61,7 @@
repository: params.REPOSITORY,
branch: params.BRANCH,
extra_bazelrc: params.EXTRA_BAZELRC,
- refspec: params.REFSPEC,
- configuration: '''{{ raw_imports['//jenkins/jobs:configs/bootstrap.json'].replace('\\', '\\\\').replace("'", "\\'") }}''')
+ refspec: params.REFSPEC)
delegate.reportUrl = "${currentBuild.getAbsoluteUrl()}Downstream_projects/"
}</script>
<sandbox>true</sandbox>
diff --git a/jenkins/jobs/global/release.xml.tpl b/jenkins/jobs/global/release.xml.tpl
index 62b766f..0109d16 100644
--- a/jenkins/jobs/global/release.xml.tpl
+++ b/jenkins/jobs/global/release.xml.tpl
@@ -40,8 +40,7 @@
repository: delegate.url,
branch: delegate.branch,
extra_bazelrc: params.EXTRA_BAZELRC,
- refspec: "+refs/heads/*:refs/remotes/origin/* +refs/notes/*:refs/notes/*",
- configuration: '''{{ raw_imports['//jenkins/jobs:configs/bootstrap.json'].replace('\\', '\\\\').replace("'", "\\'") }}''')
+ refspec: "+refs/heads/*:refs/remotes/origin/* +refs/notes/*:refs/notes/*")
}
</script>
<sandbox>true</sandbox>
diff --git a/jenkins/lib/vars/bootstrapBazelAll.groovy b/jenkins/lib/vars/bootstrapBazelAll.groovy
index c975cee..b6d4151 100644
--- a/jenkins/lib/vars/bootstrapBazelAll.groovy
+++ b/jenkins/lib/vars/bootstrapBazelAll.groovy
@@ -15,15 +15,13 @@
def repository = config.get("repository", "https://bazel.googlesource.com/bazel")
def branch = config.get("branch", "master")
def refspec = config.get("refspec", "+refs/heads/*:refs/remotes/origin/*")
- def configuration = config.get("configuration", "")
def jobs = [:]
// Convert to an array to avoid serialization issue with Jenkins
def entrySet = readConfiguration(files: ["scripts/ci/bootstrap.json"],
repository: config.repository,
branch: config.branch,
- refspec: config.refspec,
- default_configuration: config.get("configuration", null)
+ refspec: config.refspec
).entrySet().toArray()
def values = []
def keys = []
diff --git a/jenkins/lib/vars/globalBazelTest.groovy b/jenkins/lib/vars/globalBazelTest.groovy
index 357f370..da0cb10 100644
--- a/jenkins/lib/vars/globalBazelTest.groovy
+++ b/jenkins/lib/vars/globalBazelTest.groovy
@@ -35,7 +35,6 @@
configuration: json_config)
}
-
// Deployment steps
def is_master = branch.matches('^(.*/)?master$')
def is_rc = branch.matches('^(refs/heads/)?release-.*$')