Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e19f9972e0 | |||
| a4e111f785 |
Vendored
+2
-2
@@ -1,12 +1,12 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Checking tst branch on linux repository') {
|
||||
stage('Checking the dev branch on linux repository') {
|
||||
steps {
|
||||
script { // <--- Added script block
|
||||
if (isUnix()) {
|
||||
echo "Unix"
|
||||
echo "tst"
|
||||
echo "dev"
|
||||
sh 'ls -lha'
|
||||
} else {
|
||||
echo "Windows"
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
// Add build commands here, e.g., sh 'make build'
|
||||
sh 'echo "Building project..."'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
// Add test commands here
|
||||
sh 'echo "Running tests..."'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
failure {
|
||||
echo 'The build failed.'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user