Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Jenkinsfile #260

Merged
merged 1 commit into from
Aug 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 10 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ node {
stage('Tests - Docker compose install') {
sh "rm -rf memphis-docker"
dir ('memphis-docker'){
git credentialsId: 'main-github', url: 'git@github.com:memphisdev/memphis-docker.git', branch: gitBranch
git credentialsId: 'main-github', url: 'git@github.com:memphisdev/memphis-docker.git', branch: 'unified'
}
sh "docker-compose -f ./memphis-docker/docker-compose-dev-tests-broker.yml -p memphis up -d"
sh "docker-compose -f ./memphis-docker/unified-docker-compose-dev.yaml -p memphis up -d"
}

stage('Tests - Run e2e tests over Docker') {
/*stage('Tests - Run e2e tests over Docker') {
sh "rm -rf memphis-e2e-tests"
dir ('memphis-e2e-tests'){
git credentialsId: 'main-github', url: 'git@github.com:memphisdev/memphis-e2e-tests.git', branch: 'master'
}
sh "npm install --prefix ./memphis-e2e-tests"
sh "node ./memphis-e2e-tests/index.js docker"
}
}*/

stage('Tests - Remove Docker compose') {
sh "docker-compose -f ./memphis-docker/docker-compose-dev-tests-broker.yml -p memphis down"
sh "docker-compose -f ./memphis-docker/unified-docker-compose-dev.yaml -p memphis down"
sh "docker volume prune -f"
}

Expand All @@ -69,7 +69,7 @@ node {
stage('Tests - Install memphis with helm') {
sh "rm -rf memphis-k8s"
dir ('memphis-k8s'){
git credentialsId: 'main-github', url: 'git@github.com:memphisdev/memphis-k8s.git', branch: gitBranch
git credentialsId: 'main-github', url: 'git@github.com:memphisdev/memphis-k8s.git', branch: 'unified'
}
sh "helm install memphis-tests memphis-k8s/memphis --set analytics='false',teston='cp' --create-namespace --namespace memphis-$unique_id"
}
Expand All @@ -81,10 +81,10 @@ node {
sh "nohup kubectl port-forward service/memphis-cluster 7766:7766 6666:6666 5555:5555 --namespace memphis-$unique_id &"
}

stage('Tests - Run e2e tests over kubernetes') {
/*stage('Tests - Run e2e tests over kubernetes') {
sh "npm install --prefix ./memphis-e2e-tests"
sh "node ./memphis-e2e-tests/index.js kubernetes memphis-$unique_id"
}
}*/

stage('Tests - Uninstall helm') {
sh "helm uninstall memphis-tests -n memphis-$unique_id"
Expand All @@ -103,7 +103,7 @@ node {
////////////////////////////////////////


stage('Build and push image to Docker Hub') {
/*stage('Build and push image to Docker Hub') {
sh "docker buildx use builder"
if (env.BRANCH_NAME ==~ /(beta)/) {
sh "docker buildx build --push --tag ${repoUrlPrefix}/${imageName}:beta --platform linux/amd64,linux/arm64 ."
Expand All @@ -116,7 +116,7 @@ node {
sh "docker buildx build --push --tag ${repoUrlPrefix}/${imageName}:${versionTag} --tag ${repoUrlPrefix}/${imageName} --platform linux/amd64,linux/arm64 ."
}
}
}
}*/


///////////////////////////////////////
Expand Down