modified requirements.txt
parent
f9ea00c8ac
commit
65642e3d10
|
|
@ -2,6 +2,7 @@ def installRetryCount = 0
|
|||
def reportRetryCount = 0
|
||||
def checkRetryCount = 0
|
||||
def checkRetryCountSec = 0
|
||||
def checkBinary = 0
|
||||
pipeline {
|
||||
|
||||
options {
|
||||
|
|
@ -27,7 +28,7 @@ pipeline {
|
|||
}
|
||||
|
||||
stages {
|
||||
stage('Fetch Repositories') {
|
||||
stage('Fetch Data') {
|
||||
steps {
|
||||
parallel 'Checkout Repositories': {
|
||||
dir("/opt/workspace/coco_apm_dynatrace_terraform_backup/") {
|
||||
|
|
@ -48,6 +49,17 @@ pipeline {
|
|||
git branch: "master", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/coco_apm_dynatrace_terraform_backup_exporter.git"
|
||||
}
|
||||
}
|
||||
dir("/opt/workspace/coco_apm_dynatrace_terraform_backup_exporter/bin/") {
|
||||
retry(3) {
|
||||
sleep(300*checkBinary)
|
||||
script {
|
||||
checkBinary = checkBinary + 1
|
||||
}
|
||||
sh'''
|
||||
wget -qO- "https://github.com/dynatrace-oss/terraform-provider-dynatrace/releases/download/v1.30.2/terraform-provider-dynatrace_1.30.2_linux_amd64.zip" | tar xvz
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -96,7 +108,6 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
stage('Move Configuration Files') {
|
||||
steps {
|
||||
dir("/opt/workspace/coco_apm_dynatrace_terraform_backup_exporter/") {
|
||||
|
|
|
|||
|
|
@ -50,9 +50,9 @@ if __name__ == "__main__":
|
|||
for environment in environments:
|
||||
load_dotenv()
|
||||
setEnv(environment, timestamp, outputFolder, "")
|
||||
runProcess("Export", [".\\bin\\terraform-provider-dynatrace_v1.30.1.exe", "-export", "-id"])
|
||||
runProcess("Export", [".\\bin\\terraform-provider-dynatrace_v1.30.2", "-export", "-id"])
|
||||
setEnv(environment, timestamp, outputFolder, "_DASHBOARDS")
|
||||
runProcess("Export", [".\\bin\\terraform-provider-dynatrace_v1.30.1.exe", "-export", "-id", "dynatrace_dashboard"])
|
||||
runProcess("Export", [".\\bin\\terraform-provider-dynatrace_v1.30.2", "-export", "-id", "dynatrace_dashboard"])
|
||||
|
||||
print("Finished!")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue