aboutsummaryrefslogtreecommitdiffstats
path: root/appc-adapters/pom.xml
blob: 111f3b7ca76d7a8d316f3cf37efdad0aefc4a047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.openecomp.appc</groupId>
		<artifactId>appc</artifactId>
		<version>1.3.0-SNAPSHOT</version>
	</parent>
	<artifactId>appc-adapters</artifactId>
	<name>APPC Adapters</name>
	<description>Adapter bundles for app-c</description>
	<packaging>pom</packaging>

	<modules>
		<module>appc-chef-adapter</module>
		<module>appc-rest-adapter</module>
		<module>appc-iaas-adapter</module>
 		<module>appc-dmaap-adapter</module>
		<module>appc-netconf-adapter</module>
		<module>appc-ssh-adapter</module>
		<module>appc-rest-healthcheck-adapter</module>
		<module>appc-ansible-adapter</module>
	</modules>
</project>
o "Compiling source code" pushd $k8s_path/src/k8splugin/ make popd } function _move_bin { echo "Moving binaries" rm -f k8plugin *so mv $k8s_path/src/k8splugin/k8plugin . mv $k8s_path/src/k8splugin/plugins/*.so . } function _cleanup { echo "Cleaning previous execution" docker-compose kill image=$(grep "image.*k8plugin" docker-compose.yml) if [[ -n ${image} ]]; then docker images ${image#*:} -q | xargs docker rmi -f fi docker ps -a --filter "status=exited" -q | xargs docker rm } function _build_docker { echo "Building docker image" docker-compose build --no-cache } function _push_image { local tag_name=${IMAGE_NAME}:${1:-latest} echo "Start push {$tag_name}" docker push ${IMAGE_NAME}:latest docker tag ${IMAGE_NAME}:latest ${tag_name} docker push ${tag_name} } if [[ -n "${JENKINS_HOME+x}" ]]; then set -o xtrace _compile_src _move_bin _build_docker _push_image $VERSION else source /etc/environment _compile_src _move_bin _cleanup _build_docker fi