Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions jenkins/new-engine-scan/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pipeline {
agent any

stages {
stage('Scan image') {
steps {
withCredentials([usernamePassword(credentialsId: 'sysdig-secure-api-credentials', passwordVariable: 'SECURE_API_TOKEN', usernameVariable: '')]) {
sh '''
VERSION=$(curl -L -s https://download.sysdig.com/scanning/inlinescan/latest_version.txt)
curl -LO "https://download.sysdig.com/scanning/inlinescan/inlinescan_${VERSION}_linux_amd64"
chmod +x ./inlinescan_${VERSION}_linux_amd64
./inlinescan_${VERSION}_linux_amd64 --apiurl https://secure.sysdig.com mongo-express:0.54.0
'''
}
}
}
}
}
3 changes: 3 additions & 0 deletions jenkins/new-engine-scan/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Build and scan example

This [example pipeline](Jenkinsfile) shows how to download and execute the new inline scanner to scan an image.