Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Hubs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ar-noc
Hubs
Commits
ee334bd1
Commit
ee334bd1
authored
6 years ago
by
Greg Fodor
Browse files
Options
Downloads
Patches
Plain Diff
List bin files to test
parent
1add2b5c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Jenkinsfile
+2
-1
2 additions, 1 deletion
Jenkinsfile
scripts/hab-build-and-push.sh
+6
-2
6 additions, 2 deletions
scripts/hab-build-and-push.sh
with
8 additions
and
3 deletions
Jenkinsfile
+
2
−
1
View file @
ee334bd1
...
@@ -32,8 +32,9 @@ pipeline {
...
@@ -32,8 +32,9 @@ pipeline {
steps
{
steps
{
script
{
script
{
def
baseAssetsPath
=
"https://assets-dev.reticium.io/"
def
baseAssetsPath
=
"https://assets-dev.reticium.io/"
def
assetBundleServer
=
"https://assets-bundles-dev.reticium.io/"
def
s3Destination
=
"s3://assets.reticulum-dev-7f8d39c45878ee2e/hubs"
def
s3Destination
=
"s3://assets.reticulum-dev-7f8d39c45878ee2e/hubs"
def
habCommand
=
"sudo /usr/bin/hab-docker-studio -k mozillareality run /bin/bash scripts/hab-build-and-push.sh ${baseAssetsPath} ${s3Destination}"
def
habCommand
=
"sudo /usr/bin/hab-docker-studio -k mozillareality run /bin/bash scripts/hab-build-and-push.sh ${baseAssetsPath}
${assetBundleServer}
${s3Destination}"
sh
"/usr/bin/script --return -c ${shellString(habCommand)} /dev/null"
sh
"/usr/bin/script --return -c ${shellString(habCommand)} /dev/null"
}
}
...
...
This diff is collapsed.
Click to expand it.
scripts/hab-build-and-push.sh
+
6
−
2
View file @
ee334bd1
#!/bin/bash
#!/bin/bash
export
BASE_ASSETS_PATH
=
$1
export
BASE_ASSETS_PATH
=
$1
export
TARGET_S3_PATH
=
$2
export
ASSET_BUNDLE_SERVER
=
$2
export
TARGET_S3_PATH
=
$3
# To build + push to S3 run:
# To build + push to S3 run:
# hab studio run "bash scripts/hab-build-and-push.sh"
# hab studio run "bash scripts/hab-build-and-push.sh"
...
@@ -13,6 +14,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
...
@@ -13,6 +14,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd
"
$DIR
/.."
pushd
"
$DIR
/.."
mkdir
-p
.yarn
mkdir
-p
node_modules
mkdir
-p
node_modules
mkdir
-p
build
mkdir
-p
build
...
@@ -24,7 +26,9 @@ rm /usr/bin/env
...
@@ -24,7 +26,9 @@ rm /usr/bin/env
ln
-s
"
$(
hab pkg path core/coreutils
)
/bin/env"
/usr/bin/env
ln
-s
"
$(
hab pkg path core/coreutils
)
/bin/env"
/usr/bin/env
hab pkg
install
-b
core/coreutils core/bash core/node core/yarn core/aws-cli
hab pkg
install
-b
core/coreutils core/bash core/node core/yarn core/aws-cli
yarn
install
yarn
install
--cache-folder
.yarn
ls
node_modules
ls
node_modules/.bin
GENERATE_SMOKE_TESTS
=
true
yarn build
--output-path
build
GENERATE_SMOKE_TESTS
=
true
yarn build
--output-path
build
mkdir
build/pages
mkdir
build/pages
mv
build/
*
.html build/pages
mv
build/
*
.html build/pages
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment