-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3scenarioScript
35 lines (32 loc) · 1.48 KB
/
3scenarioScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
pipeline {
agent any
stages {
stage('Deactivate NEWINTEGRATION_NEWREPO_01.00.0000'){
steps {
script {
bat '''
curl -X POST --header "Authorization: Basic ZGV2b3BzX3VzZXI6T2ljX0plbmtpbnMjMjAyMw==" --header "Content-Type:application/json" --header "X-HTTP-Method-Override:PATCH" -d @Deactivate.json -d "enableAsyncActivationMode=true" "https://testinstance-idevjxz332qf-ia.integration.ocp.oraclecloud.com/ic/api/integration/v1/integrations/NEWINTEGRATION_NEWREPO|01.00.0000"
'''
}
}
}
stage('Import NEWINTEGRATION_NEWREPO_01.00.0001'){
steps {
script{
bat'''
curl --location "https://testinstance-idevjxz332qf-ia.integration.ocp.oraclecloud.com/ic/api/integration/v1/integrations/archive" --header "Authorization: Basic cG9jdXNlcjpIVk9JQ01heSMyMDIz" --form "file=@"NEWINTEGRATION_NEWREPO_01.00.0001.iar"
'''
}
}
}
stage('Activate NEWINTEGRATION_NEWREPO_01.00.0001'){
steps {
script{
bat'''
curl --header "Authorization: Basic ZGV2b3BzX3VzZXI6T2ljX0plbmtpbnMjMjAyMw==" --header "Content-Type:application/json" --header "X-HTTP-Method-Override:PATCH" -d @Activate.json --location "https://testinstance-idevjxz332qf-ia.integration.ocp.oraclecloud.com/ic/api/integration/v1/integrations/NEWINTEGRATION_NEWREPO|01.00.0001"
'''
}
}
}
}
}