Skip to content

Commit

Permalink
#000 added ops-slave label for all backups jenkins file
Browse files Browse the repository at this point in the history
  • Loading branch information
G33tha committed May 5, 2020
1 parent d4eec86 commit 8bdc84e
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 98 deletions.
9 changes: 2 additions & 7 deletions pipelines/backup/cassandra-backup/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/es-backup/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/es-restore/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/grafana-backup/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/jenkins-backup-upload/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/jenkins-backup/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/logger-es-backup/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/logger-es-restore/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/managed-postgres-backup/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/postgresql-backup/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/postgresql-restore/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Deploy

@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -10,12 +10,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/prometheus-backup/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/prometheus-fed-stateful-backup/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down
9 changes: 2 additions & 7 deletions pipelines/backup/prometheus-restore/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Library('deploy-conf') _
node() {
node("ops-slave") {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
Expand All @@ -8,12 +8,7 @@ node() {
String ANSI_YELLOW = "\u001B[33m"

stage('checkout public repo') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
cleanWs()
checkout scm
}

Expand Down

0 comments on commit 8bdc84e

Please sign in to comment.