init commit #20
|
|
@ -9,6 +9,9 @@ RUN apt update && apt install -y \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
libudev-dev \
|
libudev-dev \
|
||||||
procps \
|
procps \
|
||||||
|
gcc-riscv64-unknown-elf \
|
||||||
|
gcc-riscv64-linux-gnu \
|
||||||
|
binutils-riscv64-linux-gnu \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Tests and compiling binaries1') {
|
stage('Tests and compiling binaries') {
|
||||||
when {
|
when {
|
||||||
expression { env.CHANGE_BRANCH?.startsWith('feature/') }
|
expression { env.CHANGE_BRANCH?.startsWith('feature/') }
|
||||||
}
|
}
|
||||||
|
|
@ -9,14 +9,14 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
echo "Building and running tests in Docker for feature branch..."
|
echo "Building and running tests in Docker for feature branch..."
|
||||||
try {
|
try {
|
||||||
def targetDirAmd = "${env.WORKSPACE}/${env.CHANGE_BRANCH}/x86"
|
def targetDirAmd = "${env.WORKSPACE}/${env.CHANGE_BRANCH}/x86/"
|
||||||
def targetDirRisc = "${env.WORKSPACE}/${env.CHANGE_BRANCH}/riscv"
|
def targetDirRisc = "${env.WORKSPACE}/${env.CHANGE_BRANCH}/riscv/"
|
||||||
|
|
||||||
sh "mkdir -p ${targetDir}"
|
sh "mkdir -p ${targetDirAmd}"
|
||||||
|
sh "mkdir -p ${targetDirRisc}"
|
||||||
|
|
||||||
sh """
|
sh """
|
||||||
docker build --network=host -t e-monitor .
|
docker build --network=host -t e-monitor .
|
||||||
|
|
||||||
docker run --name e-monitor --dns 8.8.8.8 --network=host e-monitor:latest
|
docker run --name e-monitor --dns 8.8.8.8 --network=host e-monitor:latest
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
@ -69,7 +69,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
echo "Attempting to merge PR ${env.CHANGE_ID} using credentials..."
|
echo "Attempting to merge PR ${env.CHANGE_ID} using credentials ..."
|
||||||
withCredentials([usernamePassword(credentialsId: 'Jenkins creds', usernameVariable: 'GITEA_USER', passwordVariable: 'GITEA_PASS')]) {
|
withCredentials([usernamePassword(credentialsId: 'Jenkins creds', usernameVariable: 'GITEA_USER', passwordVariable: 'GITEA_PASS')]) {
|
||||||
def prId = env.CHANGE_ID
|
def prId = env.CHANGE_ID
|
||||||
sh """
|
sh """
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ const SOCKET_PATH: &str = "/var/run/enode/hostagent.sock";
|
||||||
/// ## for setting up metrics mode as preboot param from command prompt
|
/// ## for setting up metrics mode as preboot param from command prompt
|
||||||
///
|
///
|
||||||
/// examples:
|
/// examples:
|
||||||
/// ```
|
/// ``` bash
|
||||||
/// noxis-rs ... --metrics full
|
/// noxis-rs ... --metrics full
|
||||||
/// noxis-rs ... --metrics system
|
/// noxis-rs ... --metrics system
|
||||||
/// noxis-rs ... --metrics processes
|
/// noxis-rs ... --metrics processes
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue