From 0c1811a1b113c403e4e079ea44ff43557713eaa7 Mon Sep 17 00:00:00 2001 From: Kritika Singh Date: Wed, 18 Nov 2020 10:19:30 +0530 Subject: [PATCH] Delete the gocd pipeline file. Also updated the command to build the package --- DEVELOPER.md | 4 +- gocd_database_migrator.gocd.groovy | 87 ------------------------------ 2 files changed, 2 insertions(+), 89 deletions(-) delete mode 100644 gocd_database_migrator.gocd.groovy diff --git a/DEVELOPER.md b/DEVELOPER.md index 7b58529..7c6b84b 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -14,11 +14,11 @@ 5. Move the files from `create-{index,schema,view}.xml` from `generated` dir into the `resources` dir. 6. Ensure that the `left-over.xml` file contains no nodes. 7. Run a diff of the XML files to make sure changes look OK. Some changes to `create-view.xml` may need to be fixed by hand (remove quotes, fix some join queries, etc) -8. Package and bundle the distribution `./gradlew clean assemble` +8. Package and bundle the distribution `./gradlew clean assembleDist` # Building the distribution ```shell -./gradlew clean assemble +./gradlew clean assembleDist ``` diff --git a/gocd_database_migrator.gocd.groovy b/gocd_database_migrator.gocd.groovy deleted file mode 100644 index 6ffb17a..0000000 --- a/gocd_database_migrator.gocd.groovy +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 ThoughtWorks, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -GoCD.script { - pipelines { - pipeline('gocd-database-migrator') { - group = 'go-cd' - materials { - git('db-migrator') { - branch = 'master' - shallowClone = false - url = 'https://git.gocd.io/git/gocd/gocd-database-migrator' - } - } - stages { - stage("test") { - fetchMaterials = true - jobs { - job('test') { - elasticProfileId = "ecs-gocd-dev-build-dind" - tasks { - exec { - commandLine = ['./gradlew', 'clean', 'check', 'assembleDist'] - runIf = 'passed' - } - } - } - } - } - - stage("github-preview-release") { - fetchMaterials = true - environmentVariables = [ - GITHUB_USER : 'gocd', - GITHUB_TOKEN: "{{SECRET:[build-pipelines][GOCD_CI_USER_RELEASE_TOKEN]}}" - ] - jobs { - job('create-preview-release') { - elasticProfileId = "ecs-gocd-dev-build-dind" - tasks { - exec { - commandLine = ['./gradlew', 'githubRelease'] - runIf = 'passed' - } - } - } - } - } - - stage("github-release") { - fetchMaterials = true - environmentVariables = [ - GITHUB_USER : 'gocd', - PRERELEASE : "NO", - GITHUB_TOKEN: "{{SECRET:[build-pipelines][GOCD_CI_USER_RELEASE_TOKEN]}}" - ] - approval { type = 'manual' } - jobs { - job('create-release') { - elasticProfileId = "ecs-gocd-dev-build-dind" - tasks { - exec { - commandLine = ['./gradlew', 'githubRelease'] - runIf = 'passed' - } - } - } - } - } - } - } - } -} -