waytrue17 commented on a change in pull request #19244:
URL: https://github.com/apache/incubator-mxnet/pull/19244#discussion_r499036821
##########
File path: ci/jenkins/Jenkins_steps.groovy
##########
@@ -1587,6 +1587,61 @@ def docs_jekyll() {
}]
}
+// This is for building the full website
+// Assumes you have run all of the docs generation functions
+def docs_full_website() {
+ return ['Build artifacts full_website.tgz': {
+ node(NODE_LINUX_CPU) {
+ ws('workspace/docs') {
+ timeout(time: max_time, unit: 'MINUTES') {
+ utils.init_git()
+
+ unstash 'jekyll-artifacts'
+ unstash 'c-artifacts'
+ unstash 'python-artifacts'
+ unstash 'r-artifacts'
+ unstash 'julia-artifacts'
+ unstash 'scala-artifacts'
+ unstash 'java-artifacts'
+ unstash 'clojure-artifacts'
+
+ utils.docker_run('ubuntu_cpu_jekyll', 'build_docs', false)
+ utils.pack_lib('full_website', 'docs/_build/full_website.tgz',
false)
+
+ // archive so the publish pipeline can access the artifact
+ archiveArtifacts 'docs/_build/full_website.tgz'
+ }
+ }
+ }
+ }]
+}
+
+// This is for uploading website artifacts to S3 bucket
+// Assumes you have run docs_full_website function
+def docs_upload_s3() {
+ return ['Upload artifacts to s3 bucket': {
+ node(NODE_LINUX_CPU) {
+ ws('workspace/docs') {
+ timeout(time: max_time, unit: 'MINUTES') {
+ if(env.FOLDER_NAME) {
+ utils.init_git()
+
+ unstash 'full_website'
+
Review comment:
switched to `utils.unpack_and_init` and tested it on prod account
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]