From 12aa3caa221dc232650ae6c1dfa8c4b3951559fa Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sat, 19 Nov 2022 15:17:44 -0800 Subject: [PATCH] use node definition --- Jenkinsfile | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 73fa1ca..9bc48d2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,16 +1,9 @@ pipeline { agent none - environment { - SNAPCRAFT_STORE_CREDENTIALS = credentials('snapcraft-store-credentials') - } - stages { - stage('Execute playbook') { - steps { - ansiblePlaybook( - playbook: 'main.yaml', - credentialsId: 'onedrop-vetinari' - ) - } - } + node { + ansiblePlaybook( + playbook: 'main.yaml', + credentialsId: 'onedrop-vetinari' + ) } }