forked from akamai/cli-netstorage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
49 lines (49 loc) · 1.22 KB
/
Jenkinsfile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
pipeline {
agent any
stages {
stage('Initialize') {
steps {
sh '''git pull origin master
npm install'''
echo 'Initialization complete'
}
}
stage('Create') {
steps {
sh 'bin/akamaiProperty create jenkins.$BUILD_NUMBER.com --clone jenkins.base.property'
echo 'Property created'
}
}
stage('Modify') {
steps {
sh 'bin/akamaiProperty modify jenkins.$BUILD_NUMBER.com --origin jenkins.origin.com'
sh 'bin/akamaiProperty modify jenkins.$BUILD_NUMBER.com --origin origin.jenkins.com'
}
}
stage('Retrieve') {
steps {
sh 'bin/akamaiProperty retrieve jenkins.$BUILD_NUMBER.com --file rules.json'
}
}
stage('Update') {
steps {
sh 'bin/akamaiProperty update jenkins.$BUILD_NUMBER.com --file rules.json'
}
}
stage('Activate') {
steps {
sh 'bin/akamaiProperty activate jenkins.$BUILD_NUMBER.com --network BOTH'
}
}
stage('Deactivate') {
steps {
sh 'bin/akamaiProperty deactivate jenkins.$BUILD_NUMBER.com --network BOTH'
}
}
stage('Delete') {
steps {
sh 'bin/akamaiProperty delete jenkins.$BUILD_NUMBER.com'
}
}
}
}