forked from jmhale/dns-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
35 lines (32 loc) · 961 Bytes
/
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
pipeline {
// Reminder: Job isn't pulling this automatically yet. Need to paste it into the pipeline
// config, so I'm not checking in every little change while I mess around.
agent any
environment {
DO_TOKEN = credentials('DigitalOcean API Key')
}
parameters {
choice(choices: 'nyc1\nnyc3', description: 'Which region to recycle?', name: 'region')
}
stages {
stage('Start Replacement DNS Instance') {
environment {
IP = credentials("${params.region}_ip") //This doesn't work.
}
steps {
echo "Building..${params.region}"
echo "Using IP: ${IP}"
}
}
stage('Move Floating IP Address') {
steps {
echo 'Testing..'
}
}
stage('Terminate Old DNS Instance') {
steps {
echo 'Deploying....'
}
}
}
}