From 18541f7465f10f2bfa12714ef6001fd6a286457f Mon Sep 17 00:00:00 2001 From: Sr Izan <66965250+SrIzan10@users.noreply.github.com> Date: Sat, 8 Apr 2023 20:01:54 +0200 Subject: [PATCH] feat: jenkins ci integration (wip) --- Jenkinsfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..97812aa --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,28 @@ +pipeline { + agent any + + stages { + stage('Build VSCode extension') { + steps { + // Clone the repository that contains the VSCode extension + git 'https://github.com/username/repo.git' + + // Install dependencies + sh 'npm install' + + // Build the extension + sh 'vsce package' + + // Set the built file as an artifact + archiveArtifacts artifacts: 'my-extension.vsix', onlyIfSuccessful: true + } + } + + /* stage('Send webhook request') { + steps { + // Use curl to send a POST request to https://api.example.com + sh 'curl -X POST https://api.example.com --data-urlencode "payload={\\"text\\":\\"New VSCode extension build available!\\"}"' + } + } */ + } +}