forked from ActiveState/learn-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
41 lines (36 loc) · 750 Bytes
/
Copy pathJenkinsfile
File metadata and controls
41 lines (36 loc) · 750 Bytes
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
pipeline {
agent any
stages {
stage('Install State Tool') {
steps {
sh '''curl -q https://platform.activestate.com/dl/cli/install.sh -o install.sh
chmod +x install.sh
./install.sh -n -t $WORKSPACE || true'''
}
}
stage('Authenticate with Platform') {
steps {
sh '$WORKSPACE/state auth --token $ACTIVESTATE_API_KEY'
}
}
stage('Update Project') {
steps {
sh '$WORKSPACE/state pull'
}
}
stage('Lint') {
steps {
sh '$WORKSPACE/state run lints'
}
}
stage('Test') {
steps {
sh '$WORKSPACE/state run tests'
}
}
}
environment {
SHELL = '/bin/bash'
ACTIVESTATE_API_KEY = credentials('api-key')
}
}