aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/ci/build.sh
Commit message (Collapse)AuthorAge
* Fix typo in gcloud kms decrypt command.Gravatar philwo2018-04-25
| | | | PiperOrigin-RevId: 194284174
* Fix artifacts uploaded to GitHub as part of final releases.Gravatar philwo2018-04-20
| | | | | | | | We accidentally removed the .deb file, even though it's supposed to be uploaded and we didn't remove the .sig/.sha256 files of the artifacts that are *not* supposed to be uploaded. This change fixes that. PiperOrigin-RevId: 193651950
* Simplify the release scripts in preparation of rewriting them in PythonGravatar Philipp Wollermann2018-03-27
| | | | | | | | These are the scripts I'm currently using for the Bazel 0.12.0 release. Closes #4908. PiperOrigin-RevId: 190598268
* Remove no longer used site publisherGravatar Damien Martin-Guillerez2017-11-08
| | | | | | | This is now done by a Google Cloud Container Builder job. Change-Id: I33a9543f9b5bdb083171482e9eaebdb43e77181b PiperOrigin-RevId: 174905217
* Use releases.bazel.build instead of googleapis.comGravatar Damien Martin-Guillerez2017-10-06
| | | | | | | | This URL works everywhere in the world and is easier to remember. It also allow us to change the backend transparently. Change-Id: I25ed753e5a4c27f26a8a1a86266cc06a3cf22744 PiperOrigin-RevId: 170789151
* Use the .bazel.build URL instead of the googleapis.com oneGravatar dmarting2017-07-27
| | | | PiperOrigin-RevId: 163326705
* CI build.sh: delete unused codeGravatar Damien Martin-Guillerez2017-07-27
| | | | | | | This code was replaced by code on the CI side where it belongs. Change-Id: I67741f27aee5f133fe29f8e1d57b843d96f3f9ea PiperOrigin-RevId: 163320045
* Use the correct function to generate the release notesGravatar Damien Martin-Guillerez2017-07-26
| | | | | | | To be cherry-picked for #3375 Change-Id: I81e3660d1e01935101a19d75e1a696296df1941d PiperOrigin-RevId: 163202698
* Automated rollback of commit 820a46af10808396873c36d0f331e533118cf0c6.Gravatar dmarting2017-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Now the new jenkins pipeline has been rolled forward we actually needs that change To cherry-pick for #3375 *** Original change description *** Automated rollback of commit 6d6e87297fe8818e4c374fdfabfbcf538bca898a. *** Reason for rollback *** Does not work so well, see https://storage.googleapis.com/bazel/0.5.3/rc1/index.html *** Original change description *** Release script: generate the index.html from the commit message Do not rely on the README.md anymore, because it relies on log still existing forever on Jenkins. Incoming change will just provides the log as a file that will be archived on GCS. PiperOrigin-RevId: 162950464
* Automated rollback of commit 6d6e87297fe8818e4c374fdfabfbcf538bca898a.Gravatar dmarting2017-07-18
| | | | | | | | | | | | | | | | | *** Reason for rollback *** Does not work so well, see https://storage.googleapis.com/bazel/0.5.3/rc1/index.html *** Original change description *** Release script: generate the index.html from the commit message Do not rely on the README.md anymore, because it relies on log still existing forever on Jenkins. Incoming change will just provides the log as a file that will be archived on GCS. Change-Id: Ib962c249145d222bf9909070698c5d419b34db4c PiperOrigin-RevId: 162321172
* Release script: generate the index.html from the commit messageGravatar Damien Martin-Guillerez2017-07-14
| | | | | | | | | Do not rely on the README.md anymore, because it relies on log still existing forever on Jenkins. Incoming change will just provides the log as a file that will be archived on GCS. Change-Id: Ib962c249145d222bf9909070698c5d419b34db4c PiperOrigin-RevId: 161804017
* Minor Bash improvementsGravatar Androbin2017-06-27
| | | | | | | | | | | | | | | | | Based on output of static analysis tool. https://github.com/koalaman/shellcheck/wiki/SC2166 https://github.com/koalaman/shellcheck/wiki/SC2207 https://github.com/koalaman/shellcheck/wiki/SC2145 https://github.com/koalaman/shellcheck/wiki/SC2001 https://github.com/koalaman/shellcheck/wiki/SC2129 https://github.com/koalaman/shellcheck/wiki/SC2128 https://github.com/koalaman/shellcheck/wiki/SC2004 https://github.com/koalaman/shellcheck/wiki/SC2048 Closes #3162. PiperOrigin-RevId: 160261247
* Single quote the release messageGravatar Damien Martin-Guillerez2017-06-27
| | | | | | | | | | Double quoting make bash interpret the backquote and bazel is not on the path of the resulting process, showing error on the console. To cherry-pick for #3086. Change-Id: I15a4cdbd349300c87bd90d56ecb8df63ecf62dfb PiperOrigin-RevId: 160250275
* Remove jdk7 variant of the APT repositoryGravatar Damien Martin-Guillerez2017-06-27
| | | | | | | To cherry-pick for #3086. Change-Id: I05db2aef04a7cd6cec22c918f00e4b47bae3a1f4 PiperOrigin-RevId: 160249482
* Restructure site/ directory into docs/ which only contains Bazel documentation.Gravatar dzc2017-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The new docs/ directory in the bazel source tree will only contain the Bazel docs site, which is hosted at docs.bazel.build. This change deletes the marketing site and blog, which have been migrated to the bazel-website and bazel-blog GitHub repositories respectively. This change also updates the serve-docs.sh and ci/build.sh under scripts/ in preparation for publishing the docs site. Note that to help make reviews more manageable, this change is limited to moving files to their new locations. Here are the follow-up changes: * Update all links in docs to remove versions/master in paths and to add correct bazel.build subdomain when linking to pages on the marketing site or the blog. * Set up versioned directories on GCS bucket and add tooling for versioning docs This change is also coordinated with https://bazel-review.googlesource.com/c/11568/ to have the PublishSite job publish to docs.bazel.build rather than www.bazel.build. Issue #2397 RELNOTES: None PiperOrigin-RevId: 157612651
* Remove unused method from build.shGravatar Damien Martin-Guillerez2017-05-29
| | | | | Change-Id: I21c738873b2bc6b4d2e8b607e0a206589d905f86 PiperOrigin-RevId: 157271290
* Remove references to ANDROID_SDK_API_LEVEL from CIGravatar Adam Michael2017-05-11
| | | | | | | | | ANDROID_SDK_API_LEVEL was previously set by a script that parsed that platforms/ directory of the SDK. Now this functionality is handled by android_sdk_repository which autodetects the available API levels. Change-Id: Ifbbc5499444f465929b9d70bf488ff5ba3c4cded PiperOrigin-RevId: 155747062
* Do not mark the JDK7 installer -without-jdk-installerGravatar dmarting2017-05-09
| | | | | | | | | | Instead just mark it as a default installer when there is no installer with a bundled JDK. Fixes #2969 To be cherry-picked for #2692. PiperOrigin-RevId: 155483548
* Release to GCS: put the final release in its own directoryGravatar dmarting2017-05-04
| | | | | | To be cherry-picked for #2692. PiperOrigin-RevId: 155063394
* Bundled JDK changes for the release process. This is a fixed versionGravatar philwo2017-04-28
| | | | | | | | | | | | | | | that should not break CI this time... - Make the default Bazel release artifacts include the bundled JDK. - Create additional Bazel release artifacts without a bundled JDK. Tested by running "bazel build //scripts/..." in a clean checkout and one with this patch in, then diffing the entire bazel-out folder and manually inspecting the resulting files (zips, tar.gz, deb, rpm) to make sure that they contain the right files. Looks all good now, so let's try again. PiperOrigin-RevId: 154544164
* Automated g4 rollback of commit 2c4dd1f3176371473667c551cd5a5ae5992f8154.Gravatar philwo2017-04-24
| | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks CI because //scripts/packages/debian:bazel-bin still references //scripts/packages:bazel-real. *** Original change description *** Bundled JDK changes for the release process. - Make the default Bazel release artifacts include the bundled JDK. - Create additional Bazel release artifacts without a bundled JDK. Change-Id: If87c986507ae8e7dbbf0e8f163dd0073a206b265 PiperOrigin-RevId: 154054435
* Bundled JDK changes for the release process.Gravatar Philipp Wollermann2017-04-24
| | | | | | | | - Make the default Bazel release artifacts include the bundled JDK. - Create additional Bazel release artifacts without a bundled JDK. Change-Id: If87c986507ae8e7dbbf0e8f163dd0073a206b265 PiperOrigin-RevId: 153718827
* Release: also push the final release to GCSGravatar dmarting2017-03-29
| | | | PiperOrigin-RevId: 151564075
* Build a version of Bazel with a bundled OpenJDK inside the binary.Gravatar Philipp Wollermann2017-03-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're using Azul Systems, Inc.'s ZuluĀ® OpenJDK build[1], as it's a good vanilla build of OpenJDK available for our three most important platforms: zulu8.20.0.5-jdk8.0.121-linux_x64.tar.gz zulu8.20.0.5-jdk8.0.121-macosx_x64.zip zulu8.20.0.5-jdk8.0.121-win_x64.zip You can build & run a Bazel binary with an embedded JDK by simple doing: bazel build //src:bazel_with_jdk bazel-bin/src/bazel_with_jdk info The "bazel license" command prints the license of the embedded OpenJDK. We mirror the binaries and sources of the OpenJDK used for bundling on this website: https://bazel-mirror.storage.googleapis.com/openjdk/index.html RELNOTES: Bazel can now be built with a bundled version of the OpenJDK. This makes it possible to use Bazel on systems without a JDK, or where the installed JDK is too old. [1] http://www.azul.com/downloads/zulu/ -- PiperOrigin-RevId: 150440467 MOS_MIGRATED_REVID=150440467
* Filter out perf.bazel.*.nobuild for release.Gravatar Yue Gan2017-03-16
| | | | | | -- PiperOrigin-RevId: 150194302 MOS_MIGRATED_REVID=150194302
* Fix calling of test Gravatar Klaus Aehlig2017-03-07
| | | | | | | | | | | For test (a.k.a '[') the closing bracket has to be a separate argument. Fix this by adding the missing space. -- Change-Id: Ie1d64bc1fa37f85ee0c7b5520b2ba12a30c9f635 Reviewed-on: https://cr.bazel.build/9290 PiperOrigin-RevId: 149418360 MOS_MIGRATED_REVID=149418360
* Do not generate a dist archive to jdk7 Gravatar Klaus Aehlig2017-03-06
| | | | | | | | | | | | | | | Our distribution archive is supposed to contain all the original sources, as well as derived architecture-independent files needed for bootstrapping. So there should only be one distribution archive, not a separate one for jdk7, especially, as the project is moving away from java 7 soon. Change our artifact building accordingly. Closes #2250. -- Change-Id: If34afb544702bc309f722bdc2891b9dc60fe9899 Reviewed-on: https://cr.bazel.build/9190 PiperOrigin-RevId: 149104302 MOS_MIGRATED_REVID=149104302
* Support pushing a file under directory.Gravatar Yue Gan2017-02-20
| | | | | | -- PiperOrigin-RevId: 148015085 MOS_MIGRATED_REVID=148015085
* Fixes a variable mistake.Gravatar Yue Gan2017-02-20
| | | | | | -- PiperOrigin-RevId: 148010735 MOS_MIGRATED_REVID=148010735
* Add function for pushing benchmark result to site.Gravatar Yue Gan2017-02-17
| | | | | | | | This will only affect site after adding new job calling this function on CI. -- PiperOrigin-RevId: 147730290 MOS_MIGRATED_REVID=147730290
* Fixes another bug that "nobuild" tar files are not extracted.Gravatar Yue Gan2017-02-15
| | | | | | -- PiperOrigin-RevId: 147612226 MOS_MIGRATED_REVID=147612226
* Rollback of commit 1893c21f9f04acff4a3cc5cd20ddbf9fe89ae59a.Gravatar Yue Gan2017-02-15
| | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Fix CI build *** Original change description *** Automated [] rollback of commit 01aa7d6f177f3284b5fecc0397bf29a605b37df0. *** Reason for rollback *** Breaks the CI: http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.7,PLATFORM_NAME=linux-x86_64/1270/console *** Original change description *** Adds support for pushing sites that don't need build, and build benchmark site. This should not affect CI for now. -- PiperOrigin-RevId: 147572787 MOS_MIGRATED_REVID=147572787
* Rollback of commit 60b525597bf7aafdec99ea51c7f82ce5801b4725.Gravatar Dmitry Lomov2017-02-14
| | | | | | | | | | | | | | *** Reason for rollback *** Follow-up for CI breakage. *** Original change description *** Fix bazel build on CI. -- PiperOrigin-RevId: 147475894 MOS_MIGRATED_REVID=147475894
* Rollback of commit 01aa7d6f177f3284b5fecc0397bf29a605b37df0.Gravatar Dmitry Lomov2017-02-14
| | | | | | | | | | | | | | | *** Reason for rollback *** Breaks the CI: http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.7,PLATFORM_NAME=linux-x86_64/1270/console *** Original change description *** Adds support for pushing sites that don't need build, and build benchmark site. This should not affect CI for now. -- PiperOrigin-RevId: 147474775 MOS_MIGRATED_REVID=147474775
* Fix bazel build on CI.Gravatar Yue Gan2017-02-14
| | | | | | -- PiperOrigin-RevId: 147470288 MOS_MIGRATED_REVID=147470288
* Adds support for pushing sites that don't need build, and build benchmark site.Gravatar Yue Gan2017-02-14
| | | | | | | | This should not affect CI for now. -- PiperOrigin-RevId: 147346229 MOS_MIGRATED_REVID=147346229
* Move debian package building into its own package. Gravatar John Cater2017-01-31
| | | | | | | | | | | | | | | As more package options are added, it's confusing that the debian package is generated in scripts/package/BUILD, but scripts/package/debian/ contains the related files (and isn't itself a Bazel package). This change makes the file locations more predictable, and also makes it easier to see what is happening in scripts/packages. -- Change-Id: Id8c445fc164a1a4aa09c52559a5143578cfdea88 Reviewed-on: https://cr.bazel.build/8510 PiperOrigin-RevId: 146003934 MOS_MIGRATED_REVID=146003934
* For the time being, only test building on freebsd Gravatar Klaus Aehlig2017-01-20
| | | | | | | | | | | | The targets //site:jekyll-tree and //scripts/packages currently fail due to the python rules. They will be reenabled, once those are fixed in a released version. -- Change-Id: I54a8bcad87b153e2eb4e86f8e4d76d1d92f00bf9 Reviewed-on: https://cr.bazel.build/8397 PiperOrigin-RevId: 145066780 MOS_MIGRATED_REVID=145066780
* On FreeBSD as well, the sha256 binary is not called sha256sumGravatar Klaus Aehlig2017-01-19
| | | | | | | | -- Change-Id: Ia527ef1616546044e61a103749ff22191b24cb11 Reviewed-on: https://cr.bazel.build/8394 PiperOrigin-RevId: 144963679 MOS_MIGRATED_REVID=144963679
* Debian repository: override section and priority fieldsGravatar Damien Martin-Guillerez2016-12-20
| | | | | | | | | | | | | | | | | | Those field are not added to the dsc file and reprepro has started failing. Reproducing the whole set-up is almost impossible so I am sending this and will trigger a test release. Also use release label instead of release name so we get the rc number (for some reason this was not included in previous release). Fixes #2256. To be cherry-picked for #2246 -- Change-Id: Ia0b879a24f1288cbbbb843013d41725fb1ddb569 Reviewed-on: https://cr.bazel.build/8032 PiperOrigin-RevId: 142537787 MOS_MIGRATED_REVID=142537787
* Fix release notes in emailsGravatar Damien Martin-Guillerez2016-12-20
| | | | | | | | | | To be cherry-picked for #2246. -- Change-Id: I50bbd7dc00e4305f36d9a2a3a8841d6d9bcd2bd7 Reviewed-on: https://cr.bazel.build/8034 PiperOrigin-RevId: 142524920 MOS_MIGRATED_REVID=142524920
* Do not patch WORKSPACE in the release processGravatar Klaus Aehlig2016-12-02
| | | | | | | | | | | | While we do need changes for certain test to refer to a local copy of android SDKs, we do not want those changes in the environment where we build the release artefacts (in particular the distribution artefact). -- Change-Id: I471a8c23efea389f52cd7b07b8511f69d16b8d3d Reviewed-on: https://cr.bazel.build/7592 MOS_MIGRATED_REVID=140831994
* Bazel release script: fix `gsutil -m`Gravatar Laszlo Csomor2016-11-30
| | | | | | | | | commit f17fb3a816851b9f3a954c881e3fbc35bed5d6a6 added the `-m` in the wrong location, causing the gsutil command to fail, e.g. http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel-Release/87/console -- MOS_MIGRATED_REVID=140589924
* Bazel release script: run `gsutil cp` in parallelGravatar Laszlo Csomor2016-11-24
| | | | | | | | | | | | | Run the command with the `-m` option so gsutil will copy files in parallel. Suggested by gsutil itself http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel-Release/83/console (look for "NOTE: You are performing a sequence of gsutil operations") -- MOS_MIGRATED_REVID=140119304
* Fix pattern matching for the dist archiveGravatar Klaus Aehlig2016-11-23
| | | | | | | -- Change-Id: I4d4b7d84b105061d1555da7f7144f310dde38cc8 Reviewed-on: https://cr.bazel.build/7512 MOS_MIGRATED_REVID=140025107
* Use SHA256 as digest algorithm when signing bazel debian packagesGravatar Yun Peng2016-11-15
| | | | | | | Fixed https://github.com/bazelbuild/bazel/issues/1611 -- MOS_MIGRATED_REVID=139190088
* Only install bazel-distfile.zip on linuxGravatar Klaus Aehlig2016-11-11
| | | | | | | | | | | ...since we only build it on this architecture. And as it is an architecture-independent artifact anyway, it is enough to build it once. -- Change-Id: I31a108154d20a190260ca5842947b6319d434735 Reviewed-on: https://bazel-review.googlesource.com/#/c/7333 MOS_MIGRATED_REVID=138859209
* Add the distribution artifact to the list of release filesGravatar Klaus Aehlig2016-11-11
| | | | | | | -- Change-Id: I09053cbd476e5f8bb5bdb9f272ad414d165f6d9f Reviewed-on: https://bazel-review.googlesource.com/#/c/7131 MOS_MIGRATED_REVID=138855685
* On ci, bootstrap from a bootstrap bazelGravatar Klaus Aehlig2016-11-10
| | | | | | | | | | | | | | With the implementation of the distribution-artifact design, calling ./compile.sh on a git checkout won't work any more unless you already have the correct version of the protoc installed. To prepare for that, and to also keep the maintenance burden for the ci slaves low, we build bazel on the ci machines with the latest release of bazel as bootstrap bazel. -- Change-Id: I18953489cc7282586d6d0a3911ec94e11215a540 Reviewed-on: https://bazel-review.googlesource.com/#/c/6771 MOS_MIGRATED_REVID=138761693
* Also mention the release key id in the release notesGravatar Klaus Aehlig2016-10-28
| | | | | | | | | | ...as quite some users are more used to downloading keys from key servers. -- Change-Id: I6bb60a618d50c7c70561eb5851932153c470e3d2 Reviewed-on: https://bazel-review.googlesource.com/#/c/6934 MOS_MIGRATED_REVID=137526194