mirror of
https://github.com/octocat/Hello-World.git
synced 2026-06-04 14:17:09 +00:00
Delete Jenkinsfile
This commit is contained in:
parent
1bd87090fa
commit
141a64342c
37
Jenkinsfile
vendored
37
Jenkinsfile
vendored
|
|
@ -1,37 +0,0 @@
|
||||||
pipeline {
|
|
||||||
agent any
|
|
||||||
|
|
||||||
stages {
|
|
||||||
stage('Info') {
|
|
||||||
steps {
|
|
||||||
echo "Branch: ${env.BRANCH_NAME}"
|
|
||||||
echo "PR ID: ${env.CHANGE_ID}"
|
|
||||||
echo "Target: ${env.CHANGE_TARGET}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Build') {
|
|
||||||
steps {
|
|
||||||
sh 'echo "Building..."'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Test') {
|
|
||||||
steps {
|
|
||||||
sh 'echo "Running tests..."'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Deploy') {
|
|
||||||
when {
|
|
||||||
expression {
|
|
||||||
env.CHANGE_ID == null &&
|
|
||||||
(env.BRANCH_NAME == 'main' || env.BRANCH_NAME == 'master')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
echo "🚀 Deploying from ${env.BRANCH_NAME}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user