Update jenkins config.xml

PHOTO EMBED

Sat Jul 02 2022 01:46:22 GMT+0000 (UTC)

Saved by @phuongtmr #shell

xmlstarlet ed \
    -s '//project/properties' -t elem -n 'org.datadog.jenkins.plugins.datadog.DatadogJobProperty' \
    -s '//project/properties/org.datadog.jenkins.plugins.datadog.DatadogJobProperty' -t attr -n 'plugin'  -v 'datadog@4.0.0' \
    -s '//project/properties/org.datadog.jenkins.plugins.datadog.DatadogJobProperty' -t elem -n 'enableFile' -v 'true' \
    -s '//project/properties/org.datadog.jenkins.plugins.datadog.DatadogJobProperty' -t elem -n 'tagFile' -v 'dd.properties' \
    -s '//project/properties/org.datadog.jenkins.plugins.datadog.DatadogJobProperty' -t elem -n 'enableProperty' -v 'false' \
    -s '//project/properties/org.datadog.jenkins.plugins.datadog.DatadogJobProperty' -t elem -n 'tagProperties' -v 'true' \
    -s '//project/properties/org.datadog.jenkins.plugins.datadog.DatadogJobProperty' -t elem -n 'emitSCMEvents' -v 'true' \
    -s '//project/builders' -t elem -n 'org.jenkinsci.plugins.managedscripts.ScriptBuildStep' \
    -s '//project/builders/org.jenkinsci.plugins.managedscripts.ScriptBuildStep' -t attr -n 'plugin'  -v 'managed-scripts@1.5.4' \
    -s '//project/builders/org.jenkinsci.plugins.managedscripts.ScriptBuildStep'  -t elem -n 'buildStepId' -v 'af186d35-e24d-46eb-a8ad-e057fb42818e' \
    -s '//project/builders/org.jenkinsci.plugins.managedscripts.ScriptBuildStep'  -t elem -n 'tokenized' -v 'false' \
    -u '//project/publishers/jenkins.plugins.slack.SlackNotifier/@plugin' -v 'slack@608.v19e3b_44b_b_9ff' \
    -d '//project/publishers/jenkins.plugins.slack.SlackNotifier/notifyEveryFailure' \
    -s '//project/publishers/jenkins.plugins.slack.SlackNotifier' -t elem -n 'notifyEveryFailure' -v 'true' \
    -u '//project/buildWrappers/hudson.plugins.timestamper.TimestamperBuildWrapper/@plugin' -v 'timestamper@1.17' \
config.xml > c.xml
content_copyCOPY