Initial commit
This commit is contained in:
commit
445fe859a2
2 changed files with 28 additions and 0 deletions
18
.ci/Jenkinsfile
vendored
Normal file
18
.ci/Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
pipeline {
|
||||
/* choose agents per stage */
|
||||
agent none
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
agent {
|
||||
docker {
|
||||
image 'gcc:latest'
|
||||
args '-v ${PWD}:/src -w /src'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'gcc -o hello main.c'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
10
main.c
Normal file
10
main.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* main.c: does very important work */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
printf("Hello, CI!\n");
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue