modified requirements.txt

master
SLW\ARNAUA 2023-05-17 16:09:29 +02:00
parent f9ea00c8ac
commit 65642e3d10
2 changed files with 15 additions and 4 deletions

15
Jenkinsfile vendored
View File

@ -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/") {

View File

@ -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: