local test

jenkinsfile
Daniel Mikula 2023-05-23 07:56:09 +02:00
parent 5bed9d0b7c
commit 4d4f770fa3
1 changed files with 7 additions and 14 deletions

21
Jenkinsfile vendored
View File

@ -1,28 +1,21 @@
pipeline {
options {
ansiColor('xterm')
}
// agent {label 'some-slaves'}
agent none
parameters {
string(name: 'testParam', defaultValue: 'defaultval', description: 'Enter some value')
}
environment {
AWS_ACCESS_KEY = credentials('AWS_ACCESS_KEY_ID')
AWS_SECRET_KEY = credentials('AWS_SECRET_ACCESS_KEY')
}
stages {
stage('First test') {
steps {
script {
sh """
echo ${params.name}
"""
node {
sh """
echo ${params.testParam}
"""
}
}
}
}
}
}
}