This repository was archived by the owner on Jul 11, 2018. It is now read-only.
Description environment variables are not copied when started builder On openshift building with jenkins.
using the ff cartridges:
Here is my Jenkins build command
source $OPENSHIFT_CARTRIDGE_SDK_BASH
alias rsync="rsync --delete-after -azS -e '$GIT_SSH'"
upstream_ssh="myappuuidsdfsdfsd3423jskf@dev-${OPENSHIFT_NAMESPACE}.rhcloud.com"
# remove previous metadata, if any
rm -f $OPENSHIFT_HOMEDIR/app-deployments/current/metadata.json
if ! marker_present "force_clean_build"; then
# don't fail if these rsyncs fail
set +e
rsync $upstream_ssh:'$OPENSHIFT_BUILD_DEPENDENCIES_DIR' $OPENSHIFT_BUILD_DEPENDENCIES_DIR
rsync $upstream_ssh:'$OPENSHIFT_DEPENDENCIES_DIR' $OPENSHIFT_DEPENDENCIES_DIR
set -e
fi
# Build/update libs and run user pre_build and build
gear build
# Run tests here
# Deploy new build
# Stop app
$GIT_SSH $upstream_ssh "gear stop --conditional --exclude-web-proxy --git-ref $GIT_COMMIT"
deployment_dir=`$GIT_SSH $upstream_ssh 'gear create-deployment-dir'`
# Push content back to application
rsync $OPENSHIFT_HOMEDIR/app-deployments/current/metadata.json $upstream_ssh:app-deployments/$deployment_dir/metadata.json
rsync --exclude .git $WORKSPACE/ $upstream_ssh:app-root/runtime/repo/
rsync $OPENSHIFT_BUILD_DEPENDENCIES_DIR $upstream_ssh:app-root/runtime/build-dependencies/
rsync $OPENSHIFT_DEPENDENCIES_DIR $upstream_ssh:app-root/runtime/dependencies/
# Configure / start app
$GIT_SSH $upstream_ssh "gear remotedeploy --deployment-datetime $deployment_dir"
http://serverfault.com/questions/795672/environment-variables-are-not-copied-to-builder-on-openshift-when-building-with
Reactions are currently unavailable