Skip to content

Commit 3e8981c

Browse files
chizourfecher
authored andcommitted
fixed issues in build process
1 parent 3419d58 commit 3e8981c

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

deploy/Jenkinsfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
node {
2+
stage 'Wipe workspace'
3+
deleteDir()
4+
5+
// Mark the code checkout 'stage'
6+
stage 'Checkout'
7+
// Get GeoWave source from GitHub repository
8+
checkout([$class: 'GitSCM', branches: [[name: 'master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', noTags: false, reference: '', shallow: true], [$class: 'LocalBranch', localBranch: 'master']], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/ngageoint/geowave.git']]])
9+
// Mark the create docker image 'stage'
10+
stage 'Create Docker Image'
11+
// Build the docker container
12+
sh 'docker build -t ngageoint/geowave-centos6-java8-build -f deploy/packaging/docker/geowave-centos6-java8-build.dockerfile deploy/packaging/docker'
13+
sh 'docker build -t ngageoint/geowave-centos6-rpm-build -f deploy/packaging/docker/geowave-centos6-rpm-build.dockerfile deploy/packaging/docker'
14+
sh 'docker build -t ngageoint/geowave-centos6-publish -f deploy/packaging/docker/geowave-centos6-publish.dockerfile deploy/packaging/docker'
15+
16+
// Mark the build artifacts 'stage'....
17+
stage 'Build and Publish RPMs'
18+
sh 'deploy/packaging/docker/docker-build-rpms.sh'
19+
20+
// Deploy to geowave-rpms
21+
stage 'Deploying to s3://geowave-rpms/'
22+
sh 'aws s3 sync /var/www/html/repos/snapshots/geowave/dev/ s3://geowave-rpms/dev/'
23+
sh 'aws s3 sync /var/www/html/repos/snapshots/geowave/release/ s3://geowave-rpms/release/'
24+
}

deploy/packaging/docker/publish/publish-common-rpm.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ rm -rf geowave
7272

7373
echo '###### Copy rpm to repo and reindex'
7474

75+
mkdir -p ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/{SRPMS,TARBALL,${ARGS[arch]}}/
7576
cp -R ${WORKSPACE}/${ARGS[buildroot]}/RPMS/${ARGS[arch]}/*.rpm ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/${ARGS[arch]}/
7677
cp -fR ${WORKSPACE}/${ARGS[buildroot]}/SRPMS/*.rpm ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/SRPMS/
7778
cp -fR ${WORKSPACE}/${ARGS[buildroot]}/TARBALL/*.tar.gz ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/TARBALL/
@@ -83,4 +84,4 @@ cp -fR ${WORKSPACE}/${ARGS[buildroot]}/TARBALL/*.tar.gz ${LOCAL_REPO_DIR}/${ARGS
8384
# up and fail. the ha* commands are from the hatools rpm available via EPEL.
8485
hatimerun -t 10:00 \
8586
halockrun -c ${LOCK_DIR}/rpmrepo \
86-
createrepo --update --workers 2 ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/${ARGS[arch]}/
87+
createrepo --update --workers 2 ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/${ARGS[arch]}/

deploy/packaging/docker/publish/publish-vendor-rpm.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ cp ${WORKSPACE}/${ARGS[buildroot]}/SOURCES/geowave-c++-${GEOWAVE_VERSION}-${VEND
6565

6666
echo '###### Copy rpm to repo and reindex'
6767

68+
mkdir -p ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/{SRPMS,TARBALL,${ARGS[arch]}}/
69+
mkdir -p ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}-jars/JAR/
6870
cp -R ${WORKSPACE}/${ARGS[buildroot]}/RPMS/${ARGS[arch]}/*.rpm ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/${ARGS[arch]}/
6971
cp -fR ${WORKSPACE}/${ARGS[buildroot]}/SRPMS/*.rpm ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/SRPMS/
7072
cp -fR ${WORKSPACE}/${ARGS[buildroot]}/TARBALL/*.tar.gz ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/TARBALL/
@@ -79,4 +81,4 @@ popd
7981
# up and fail. the ha* commands are from the hatools rpm available via EPEL.
8082
hatimerun -t 10:00 \
8183
halockrun -c ${LOCK_DIR}/rpmrepo \
82-
createrepo --update --workers 2 ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/${ARGS[arch]}/
84+
createrepo --update --workers 2 ${LOCAL_REPO_DIR}/${ARGS[repo]}/${BUILD_TYPE}/${ARGS[arch]}/

0 commit comments

Comments
 (0)