-
Notifications
You must be signed in to change notification settings - Fork 53
/
jenkins_build.sh
executable file
·28 lines (24 loc) · 1.16 KB
/
jenkins_build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# The required environment variables are:
# user - e.g. 'pjmhill'
# org_sagebionetworks_stack_iam_id - the id of the developer's AWS secret key
# org_sagebionetworks_stack_iam_key - the developer's AWS secret key
# org_sagebionetworks_stackEncryptionKey - the stack encryption key, common to all dev builds
# org_sagebionetworks_search_enabled - when set to "true", will enable search feature and its tests
# rds_password - the password for the build database, common to all dev builds
# build_deploy - when set to "true" deploy artifacts
# artifactory_username - artifactory username for deploy
# artifactory_password - artifactory password for deploy
# org_sagebionetworks_repository_database_connection_url - endpoint to mysql database for repo data
# org_sagebionetworks_table_cluster_endpoint_0 - endpoint to mysql database for user tables data
# On Jenkins HOME is /var/lib/jenkins
export m2_cache_parent_folder=${HOME}/${JOB_NAME}
export src_folder=${HOME}/workspace/${JOB_NAME}
# Now call the more generic 'docker_build.sh'
BASEDIR=$(dirname "$0")
export stack=dev
${BASEDIR}/before.sh
${BASEDIR}/docker_build.sh
export result=$?
${BASEDIR}/after.sh
exit ${result}